Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I want to show how many sheets I have in a workbook using a formula. The
number changes everyday. What do I use, or can I even do this? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This user defined function will do it...
Public Function WksCount() As Integer WksCount = Application.Worksheets.Count End Function HTH, -- Gary Brown If this post was helpful, please click the ''Yes'' button next to ''Was this Post Helpfull to you?''. "Bill from Holland Michigan" wrote: I want to show how many sheets I have in a workbook using a formula. The number changes everyday. What do I use, or can I even do this? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Gary L Brown wrote:
This user defined function will do it... Public Function WksCount() As Integer WksCount = Application.Worksheets.Count End Function HTH, -- Gary Brown If any of your sheets are not worksheets (eg chart sheets, xl4macro sheets) then you should use... Public Function ShtCount() As Integer ShtCount = Application.Sheets.Count End Function Ken Johnson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting occurance of text values across multiple worksheets | Excel Worksheet Functions | |||
HOW DO I FORMAT WORKSHEETS IN A WORKBOOK TO NUMBER IN A SEQUENCE? | Excel Worksheet Functions | |||
Linking Worksheets in an undefined number of Workbooks | Excel Discussion (Misc queries) | |||
Excel should let its worksheets be arranged (tiled) in a workbook | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |