• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Tabsheet names

T. Cauwe

New Member
Dear,

I would like to generate an array with all the tabsheet names of that particular workbook. I've found several ways to do so for the active tabsheet, but would want to do it in a less manual way for all of them regardless of the amount of tabsheets. Let's assume I would have 1 tabsheet named summary onto where I want to have all the tabsheet names generated.

See example,

T.Cauwe
 

Attachments

  • 20140104 - example of tabsheet names.xlsx
    31.5 KB · Views: 1
Hi,

Change the macro below to suit

Code:
Sub getsheetnames()

x = 0
For Each Sheet In Worksheets
x = x + 1
y = Sheet.Name
Sheets("sheet1").Range("A" & x) = y
Next
End Sub
 
@GFC
Hi!
Almost never a post of your own? Strange, at least... more strange indeed when almost all from other websites... That's politeness, isn't it?
Regards!
 
Back
Top