Hello -
How would you write the code to set a variable (integer) to the number of rows that contain data/text in a sheet?
I cant use specialcells/LastCell for various reasons. Has to be CountA or some other solution that I dont know of.
Thanks!
Hello -
How would you write the code to set a variable (integer) to the number of rows that contain data/text in a sheet?
I cant use specialcells/LastCell for various reasons. Has to be CountA or some other solution that I dont know of.
Thanks!
[vba]
myVar = Application.CountA(Columns("A"))
[/vba]
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Counta will only count non blank cell, is it all data or just text data?