Skip to content

Instantly share code, notes, and snippets.

@SourceCode
Created February 1, 2015 08:09
Show Gist options
  • Save SourceCode/ff88783b0f62e60d5ff1 to your computer and use it in GitHub Desktop.
Save SourceCode/ff88783b0f62e60d5ff1 to your computer and use it in GitHub Desktop.
Sets current workbook to names of existing workbook tabs
Sub ListWorkSheetNames()
'Updateby20140624
Dim xWs As Worksheet
Set xWs = Application.ActiveSheet
For i = 1 To Application.Sheets.Count
xWs.Range("A" & i) = Application.Sheets(i).Name
Next i
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment