ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How can I count number of sheets present in a workbook? (https://www.excelbanter.com/excel-discussion-misc-queries/113123-how-can-i-count-number-sheets-present-workbook.html)

Imran

How can I count number of sheets present in a workbook?
 


Bob Phillips

How can I count number of sheets present in a workbook?
 
in the immediate window in the VBIDE

?Activeworkbook.Sheets.Count

if you just want the worksheets


?Activeworkbook.Worksheets.Count

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Imran" wrote in message
...





All times are GMT +1. The time now is 01:56 AM.

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