Kevin's Office Tricks
Pages
Home
Word Tips
Excel Tips
Quick Tips
Excel Tips
To list Tab names in Excel Workbook
Sub ListSheetNames()
Dim R As Range
Dim WS As Worksheet
Set R = ActiveCell
For Each WS In ThisWorkbook.Worksheets
R.Value = WS.Name
Set R = R(2, 1)
Next WS
End Sub
No comments:
Post a Comment
Home
Subscribe to:
Posts (Atom)
No comments:
Post a Comment