Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi. I want to create a macro that will count the number of sheets in a
particular workbook. Is this possible? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try
Sub stantial() numsheets = Worksheets.Count end sub Mike "tc" wrote: Hi. I want to create a macro that will count the number of sheets in a particular workbook. Is this possible? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Use this UDF:
Function sheetcount() As Integer sheetcount = Worksheets.Count End Function -- Gary''s Student - gsnu200743 "tc" wrote: Hi. I want to create a macro that will count the number of sheets in a particular workbook. Is this possible? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Please don't post the same message in multiple newsgroups. It only tends
to fragment your answers, and potentially waste the time of those answering questions that have already been answered... In article . com, tc wrote: Hi. I want to create a macro that will count the number of sheets in a particular workbook. Is this possible? |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Note that this will give you the number of sheet in the ACTIVE workbook,
not in "a particular" workbook... In article , Gary''s Student wrote: Use this UDF: Function sheetcount() As Integer sheetcount = Worksheets.Count End Function -- Gary''s Student - gsnu200743 "tc" wrote: Hi. I want to create a macro that will count the number of sheets in a particular workbook. Is this possible? |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Worksheets would be a subset of the sheets in a workbook.
if there could be chart sheets or macro sheets (less likely) as well activeworkbook.Sheets.count -- Regards, Tom Ogilvy "tc" wrote: Hi. I want to create a macro that will count the number of sheets in a particular workbook. Is this possible? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count number of sheets | Excel Discussion (Misc queries) | |||
Count number of sheets | Excel Discussion (Misc queries) | |||
How can I count number of sheets present in a workbook? | Excel Discussion (Misc queries) | |||
Count the number of sheets. | Excel Discussion (Misc queries) | |||
Number count - postcodes and need to count the numbers of tim... | Excel Discussion (Misc queries) |