Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PCLIVE
 
Posts: n/a
Default Number of Sheets in a workbook formula

Is there a formula that will return the number of sheets in a workbook?

Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Otto Moehrbach
 
Posts: n/a
Default Number of Sheets in a workbook formula

One way is to put this function in a standard module, then in any cell of
any sheet type "=NumShts()" without the quotes. HTH Otto
Function NumShts()
NumShts = Sheets.Count
End Function
"PCLIVE" wrote in message
...
Is there a formula that will return the number of sheets in a workbook?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PCLIVE
 
Posts: n/a
Default Number of Sheets in a workbook formula

Thanks Otto,

I already knew this way, but I was trying to avoid vba for this workbook.

Anyway, it's been awhile since I posted this question (awhile today). I
found another way to do what I needed.
Thanks anyway.

"Otto Moehrbach" wrote in message
...
One way is to put this function in a standard module, then in any cell of
any sheet type "=NumShts()" without the quotes. HTH Otto
Function NumShts()
NumShts = Sheets.Count
End Function
"PCLIVE" wrote in message
...
Is there a formula that will return the number of sheets in a workbook?

Thanks.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
add new sheets in a workbook with new sheets being a variable [email protected] Excel Discussion (Misc queries) 1 April 11th 06 08:38 PM
Count the number of sheets. Olle Svensson Excel Discussion (Misc queries) 3 March 13th 06 02:30 PM
Checking a number of sheets sphenisc Excel Worksheet Functions 1 November 17th 05 06:55 PM
Formula for current month minus one = Quarter number in a macro. Pank Excel Discussion (Misc queries) 11 June 22nd 05 02:47 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 02:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"