Get the total no. of worksheet & their name

N

nelsonchang

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

Bob Phillips

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?
 
Top