ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Get the total no. of worksheet & their name (https://www.excelbanter.com/excel-programming/292776-get-total-no-worksheet-their-name.html)

[email protected]

Get the total no. of worksheet & their name
 
Hi
With VBA, can I get the information about the total no. of worksheet under a workbook & their name?

Bob Phillips[_6_]

Get the total no. of worksheet & their name
 

numWS = Activeworkbook.worksheets.count

for each ws in activeworkbook.worksheets
debug.print ws.name
next ws

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

wrote in message
...
Hi,
With VBA, can I get the information about the total no. of worksheet

under a workbook & their name?




All times are GMT +1. The time now is 07:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com