L
Legacy 93538
Guest
Hi
Can anyone explain how you write VBA which counts the amount of rows in a cell range and then adds values to the bottom two cells of that cell range.
So far i have the code below but it doesn't seem to do anything, it doesn't add the values to the correct cells
Does anyone know how to do this?
Thanks
Jessciaseymour
Can anyone explain how you write VBA which counts the amount of rows in a cell range and then adds values to the bottom two cells of that cell range.
So far i have the code below but it doesn't seem to do anything, it doesn't add the values to the correct cells
Code:
k = WorksheetFunction.CountA(.Range("A2:A3000"))
h = k + 2
f = k + 3
wbGCT.Sheets("Graphing").Select: Range ("C" & h).Value = "National_Average_NoSample"
wbGCT.Sheets("Graphing").Select: Range("C" & f).Value = "UpperQuartile_TRUE_NoSample"
Does anyone know how to do this?
Thanks
Jessciaseymour