K
Keith
I have a worksheet where users are entering data from D1 to IV1 (headers); I
need to count how many entries exist so I can automatically paste entries at
the next unused cell (all contiguous cells will be filled, There won't be
any blanks).
I tried the following, but the range reference for CountA doesn't appear to
translate well (clearly, I'm not getting the proper syntax).
Can anyone correct it, or provide an easy alternative in VBA?
Thanks,
Keith
XL2003
not working:
-----------------
OldApps = Excel.WorksheetFunction.CountA(Sheet3.Range("D1:IV1"))
and
OldApps = Excel.WorksheetFunction.CountA(Sheet3.Range("D1:IV1").value)
Each returns the value of 1; in a cell on that worksheet, =countA(D1:IV1)
evaluates to 34 (and will be growing quickly)
need to count how many entries exist so I can automatically paste entries at
the next unused cell (all contiguous cells will be filled, There won't be
any blanks).
I tried the following, but the range reference for CountA doesn't appear to
translate well (clearly, I'm not getting the proper syntax).
Can anyone correct it, or provide an easy alternative in VBA?
Thanks,
Keith
XL2003
not working:
-----------------
OldApps = Excel.WorksheetFunction.CountA(Sheet3.Range("D1:IV1"))
and
OldApps = Excel.WorksheetFunction.CountA(Sheet3.Range("D1:IV1").value)
Each returns the value of 1; in a cell on that worksheet, =countA(D1:IV1)
evaluates to 34 (and will be growing quickly)