Count number of worksheets with no VBA

quej2003

New Member
Joined
Oct 5, 2010
Messages
49
HI All,

Just wondering if there is a way to count the number of worksheets in a workbook without using VBA (I know it can indeed be done there but would rather not use it). It seems so simple but I cant figure it out!

Thanks for any help!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi

You can use an old XLM4 macro function for this (but you can't use it directly - you need to write it into a workbook name and then refer to this):

1. Create a name and call it 'NumShts'
2. In RefersTo box type:

=GET.WORKBOOK(4)
3. Click OK and then back in the sheet, in a cell type:

=NumShts
 
Upvote 0
Hi

You can use an old XLM4 macro function for this (but you can't use it directly - you need to write it into a workbook name and then refer to this):

1. Create a name and call it 'NumShts'
2. In RefersTo box type:

=GET.WORKBOOK(4)
3. Click OK and then back in the sheet, in a cell type:

=NumShts

Thats quite awesome to say the least, thank you very much :)
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,310
Members
452,906
Latest member
phanmemchatdakenhupviral

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top