Skip to content

Instantly share code, notes, and snippets.

@evizitei
Last active December 20, 2015 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evizitei/6140116 to your computer and use it in GitHub Desktop.
Save evizitei/6140116 to your computer and use it in GitHub Desktop.
Sub WorksheetLoop()
Dim I As Integer
Dim worksheetName As String
Dim sheet As Worksheet
I = 1
For Each sheet In ActiveWorkbook.Worksheets
worksheetName = "" & I & " - " & sheet.Name
sheet.Name = worksheetName
I = I + 1
Next sheet
End
Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment