View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default How to use count of records in code?

For i = 1 To Application.CountA(Columns(1))
'your macro
Next i

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Snowsride" wrote in message
...
I need to run a procedure n times, where n is the count of records in

Column
A of the current sheet. How do I write the code?

Grateful for any help.