Last active
March 29, 2018 18:59
-
-
Save kishorevaishnav/39ec4de6fda1849e57d5984b586e488c to your computer and use it in GitHub Desktop.
change all worksheet's name of XLSX
This file contains hidden or 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 ChangeWorkSheetName() | |
'Updateby20140624 | |
Dim Rng As Range | |
Dim WorkRng As Range | |
On Error Resume Next | |
xTitleId = "KutoolsforExcel" | |
newName = Application.InputBox("Name", xTitleId, "", Type:=2) | |
For i = 1 To Application.Sheets.Count | |
Application.Sheets(i).Name = newName & i | |
Next | |
End Sub | |
Sub DeleteColumnC() | |
For i = 1 To Application.Sheets.Count | |
Application.Sheets(i).Activate | |
Columns("C").Delete | |
Next | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment