Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi, is there a way I could display how many sheets I have in a workbook
Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
use this code/function:
Function sheet_count() As Integer sheet_count = ThisWorkbook.Sheets.Count End Function press ALT+F11 to open Microsoft Visual Basic window click Insert-Module paste the code there then in any cell insert: =sheet_count() ATTENTION: the function ALL sheets in the workbook, including chart sheets and hidden sheets pls click YES if this post was helpful On 10 Kwi, 11:48, "Dale" wrote: Hi, is there a way I could display how many sheets I have in a workbook Thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this udf:
Function sheetcount() As Long sheetcount = Sheets.Count End Function -- Gary''s Student - gsnu200845 "Dale" wrote: Hi, is there a way I could display how many sheets I have in a workbook Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count number of sheets | Excel Worksheet Functions | |||
How do I use workbook.sheets.count | Excel Discussion (Misc queries) | |||
Count the number of sheets. | Excel Discussion (Misc queries) | |||
COUNT over several sheets...Part 2! | Excel Discussion (Misc queries) | |||
COUNT over several sheets | Excel Discussion (Misc queries) |