Last active
December 20, 2015 13:39
-
-
Save evizitei/6140116 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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