Get the total no. of worksheet & their name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
With VBA, can I get the information about the total no. of worksheet under a workbook & their name?
 
numWS = Activeworkbook.worksheets.count

for each ws in activeworkbook.worksheets
debug.print ws.name
next ws

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

Hi,
With VBA, can I get the information about the total no. of worksheet
under a workbook & their name?
 

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

Back
Top