Creating list of sheet names

  • Thread starter Thread starter trickdos
  • Start date Start date
T

trickdos

Thanks for your help guys.

I am looking for a macro to cycle through the sheets and on the firs
sheet create a list of all the sheet names from the file. Any ideas?
I started some code, but I can't seem to make it work.

Thanks again for your help.

Bret
 
Dim i as Long, sh as Object
i = 0
for each sh in sheets
i = i + 1
cells(i,1).Value = sh.name
Next
 

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