Link to home
Start Free TrialLog in
Avatar of WeThotUWasAToad
WeThotUWasAToad

asked on

Create a list of all sheet tab names in a given Excel workbook

Hello,

Is there a way, in Excel (2010), to create a list of all sheet tab names in a given workbook?

The list I've got in mind would be somewhat similar to the list which can be created with a DOS command of all filenames contained in a particular folder.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you want to run a macro in Excel, save a macro of this...
Sub SheetNames()
    Columns(1).Insert
    For i = 1 To Sheets.Count
        Cells(i, 1) = Sheets(i).Name
    Next i
End Sub

Open in new window

Avatar of WeThotUWasAToad
WeThotUWasAToad

ASKER

This thread has a follow-up thread which includes an AHK script for obtaining a list of Sheet Tab names and therefore does not require vbs, etc.

The follow-up thread is located here:
https://www.experts-exchange.com/questions/28979485/Make-a-file-test-vbs-using-vbscript.html