Good morning,
I would like to create a list of all the sheet names I have in a given workbook. Is there a simple way to do this through VBA?
Many thanks for your assistance!
N
Good morning,
I would like to create a list of all the sheet names I have in a given workbook. Is there a simple way to do this through VBA?
Many thanks for your assistance!
N
Last edited by NMullis; 03-02-2009 at 04:13 PM.
See link. Any problems post back
http://www.mvps.org/dmcritchie/excel/sheets.htm
VBA Noob
_________________________________________
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
This helps some, but perhaps I am not understanding or using the correct code from this link. I was able to copy the name of the sheet into cell A1 of the its own sheet, but not all names into one sheet. I hope that makes sense.
This is the code I used
But like I said, I maybe was using the wrong section as there is a lot covered there. Can you give me any futher direction to tell it copy the sheet name of each sheet into Sheet1 A1, A2, A3, etc?Please Login or Register to view this content.
Thanks so much.
Try
VBA NoobPlease Login or Register to view this content.
I pasted this into a small workbook to test and it worked great. I pasted it into a big workbook (100+ sheets) and it ran but returned no results.
Is there a sheet 1?
I tested on 21 sheets and worked fine
VBA Noob
Picture me giving myself a major head slap! Sorry to waste your time there and thank you so much for the solutions!!
Is today Monday? N
Hello, bringing this thread back from the dead. I am trying to do this same thing but when I run the code, i get an error saying Run-time error '1004'. The cell or chart you are trying to change is protected and therefore read-only.
None of the worksheets are protected, so I am not sure why I am getting this code?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks