hi
i want to get the number of sheets used in excel.
can any one please help me in this regard
i want to get the number of sheets used in excel.
can any one please help me in this regard
Excel used sheets
|
hi
i want to get the number of sheets used in excel. can any one please help me in this regard
Can you loop thru all the sheet and find the usedrange.rows value for each sheet. if more than zero means u can increment the counter and get the desired from counter value
i don't know if there is a method to count no of sheets in an excel file but one trick is,
try to open a non existing sheet and get that err.Number Then in your code use a loop to open all sheets one by one meanwhile keep incrementing a variable as no. of sheets till you get that same err.number |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Compare Two ex cel sheets and highlight differences | neerukonda9 | 17 | 14,869 |
06-03-2020, 12:04 PM Last Post: rajrk |
|
Comparing two excel Sheets whose columns names vary | Divya Roopa | 2 | 8,864 |
03-26-2014, 07:20 PM Last Post: Parke |
|
Iteration in Local sheets for UFT11.5 | haithamQTP | 1 | 3,328 |
02-27-2014, 09:12 AM Last Post: supputuri |
|
How to give the For Loop for 3 work sheets? | Uma | 1 | 3,042 |
09-10-2011, 06:54 PM Last Post: Uma |
|
Why we have global and local data sheets | anbarasu | 1 | 2,307 |
08-19-2009, 04:09 PM Last Post: Saket |