Hello,
I would like a list of all of the worksheets in my workbook. Is there an easy way to say:
A1=worksheet name
A2=worksheet+1 name
A3=worksheet+2 name
So that I can easily get a list of all of the worksheets in my workbook? Or not?
thanks.
Hello,
I would like a list of all of the worksheets in my workbook. Is there an easy way to say:
A1=worksheet name
A2=worksheet+1 name
A3=worksheet+2 name
So that I can easily get a list of all of the worksheets in my workbook? Or not?
thanks.
Last edited by nofzinger; 05-10-2010 at 05:15 PM.
Install this function
How to use:![]()
Please Login or Register to view this content.
- Copy above code.
- In Excel press Alt + F11 to enter the VBE.
- Press Ctrl + R to show the Project Explorer.
- Choose Insert -> Module.
- Paste code into the right pane.
- Press Alt + Q to close the VBE.
- Save workbook before any other changes.
Then in A1
=WorksheetNames(B1)
Copy Down
Люди, питающие благие намерения, как раз и становятся чудовищами.
Regards, ?Born in USSR?
Vusal M Dadashev
Baku, Azerbaijan
I like the function idea, but I would use this approach:
Used as:![]()
Please Login or Register to view this content.
=WSNAME(1)
=WSNAME(2)
...etc
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Great! Thank you!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks