PDA

View Full Version : how to count items in a column



kualjo
05-21-2009, 11:57 AM
I need to count the number of items in a column in order to know how many times to run a loop. The file is an output from SAP that never comes out with the same number of entries in the first column. If I can count them, things will go much smoother.
Thanks!

Bob Phillips
05-21-2009, 12:27 PM
Try



Application.CountA(Columns("A"))

kualjo
05-21-2009, 12:31 PM
That's what I needed! Thanks!