Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Records Simon Excel Worksheet Functions 5 November 13th 08 11:22 AM
Count Records Freshman Excel Worksheet Functions 11 June 19th 08 09:23 AM
Count Records Rod Excel Worksheet Functions 1 February 19th 08 07:01 PM
Count Unique Records Jon Dow[_2_] Excel Worksheet Functions 4 February 26th 07 05:28 AM
Count Records Between A-K and L-Z Leslie Excel Worksheet Functions 3 April 18th 06 03:25 PM


All times are GMT +1. The time now is 04:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"