Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Workbook Row Count Question
I am not sure if this can be done or not. Any assistance that can be
provided would be most appreciated. I have a XLS sheet with 24 tabs, various names. I want to get the count of rows in each using VBA. Please advise |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Workbook Row Count Question
Hi,
I'm not sure because at the moment I dont have the right version of excel, but I remember that in excel 2003 there is the listobject class. Using vba you can rename each listobject and the get access to rowcount property. bye, ste |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Workbook Row Count Question
for each sh in ActiveWorkbook.Worksheets
msgbox sh.Name & ": " & sh.UserRange.Rows.count Next -- Regards, Tom Ogilvy "nca-wom" wrote in message ... I am not sure if this can be done or not. Any assistance that can be provided would be most appreciated. I have a XLS sheet with 24 tabs, various names. I want to get the count of rows in each using VBA. Please advise |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Workbook Row Count Question
For each sh In Activeworkbook.Worksheets Debug.Print sh.Name, sh.UsedRange.Rows.Count Next sh -- HTH RP (remove nothere from the email address if mailing direct) "nca-wom" wrote in message ... I am not sure if this can be done or not. Any assistance that can be provided would be most appreciated. I have a XLS sheet with 24 tabs, various names. I want to get the count of rows in each using VBA. Please advise |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Workbook Row Count Question
Had a typo in the 2nd line:
msgbox sh.Name & ": " & sh.UserRange.Rows.count should be msgbox sh.Name & ": " & sh.UsedRange.Rows.count -- Regards, Tom Ogilvy "Tom Ogilvy" wrote in message ... for each sh in ActiveWorkbook.Worksheets msgbox sh.Name & ": " & sh.UserRange.Rows.count Next -- Regards, Tom Ogilvy "nca-wom" wrote in message ... I am not sure if this can be done or not. Any assistance that can be provided would be most appreciated. I have a XLS sheet with 24 tabs, various names. I want to get the count of rows in each using VBA. Please advise |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
count question | Excel Discussion (Misc queries) | |||
Count Question | Excel Discussion (Misc queries) | |||
Count question | Excel Discussion (Misc queries) | |||
count if question | Excel Programming | |||
Question for Experts: Opening workbook with workbook references | Excel Programming |