I use:
Rowcnt = Application.worksheetfunction.counta(range("A1:A65000"))

this will give you the number of cells in column A that contain data.

Paul



________________________________
From: Ashkaran Badlani <ashkaran.badl...@gmail.com>
To: excel-macros@googlegroups.com
Sent: Friday, March 6, 2009 7:31:24 PM
Subject: $$Excel-Macros$$ Need help with VBA Macro...


Hi All,

How can I check how many rows are filled with data in a macro.

-- 
Thanks & Regards Ashkaran Badlani


--~--~---------~--~----~------------~-------~--~----~
-------------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
-------------------------------------------------------------------------------------
-~----------~----~----~----~------~----~------~--~---

Reply via email to