How can you find how many worksheets in a workbook?

G

Guest

We have a really big project going on with a lot of seperate worksheets in
one workbook. Is there a quick way to find out how many 'tabs' are in the
book?
 
G

Guest

Open the VB editor, then open Project Explorer, all the tabs will be neatly
listed
 
D

Dana DeLouis

Just throwing this idea out as it's not the best vs. the vba solution of
"Activeworkbook.Worksheets.Count"

Before you open your "Big" workbook, note the number of open sheets with the
worksheet function:
=INFO("numfile").

Say there are "x" number of open sheets.

Then after you open your project, have a cell with
=INFO("numfile") - x

HTH
 
G

Guest

This worked out great. Of course EXCEL and VB sort into 1s, 2s etc rather
than sequential numbering...but it STILL is quicker than clicking each sheet
or going to Properties and tallying the contents!

Thanks to you, Bob and Dana for posting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top