this will count everything even no. which are used for rough work. lets us know what exactly u want by sending ur workbook.
a = WorksheetFunction.CountA(Sheet1.UsedRange) ________________________________ From: Jitendra Verma <jitendra.kumarve...@gmail.com> To: excel-macros@googlegroups.com Sent: Wed, 26 January, 2011 11:06:05 PM Subject: $$Excel-Macros$$ Count Number of Records in worksheet Hi,, Please tell me how to count the number of total records in a worksheet using the macro or count of non blank cells in a worksheet. -- Thanks and Regards, Jitendra Kr. Verma| Sr. Software Engineer Mob: +91.9700695633 -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel