Renaming multiple sheets in a workbook
Closed
rev
-
May 19, 2017 at 03:19 AM
vcoolio Posts 1411 Registration date Thursday July 24, 2014 Status Moderator Last seen September 6, 2024 - May 19, 2017 at 08:13 AM
vcoolio Posts 1411 Registration date Thursday July 24, 2014 Status Moderator Last seen September 6, 2024 - May 19, 2017 at 08:13 AM
Hello,
I have workbook with more than 50 sheets.. I would like to rename all sheets with workbook name. Something like workbook.sheet1,workbook.sheet 2 ....I just want the name of the workbook in the sheets name.. kindly help me to rename the sheets.. I tried manual method and vb codes but it is not working out. I am new to vb macros and thus I was not successful. Please help me to solve this issue.
I have workbook with more than 50 sheets.. I would like to rename all sheets with workbook name. Something like workbook.sheet1,workbook.sheet 2 ....I just want the name of the workbook in the sheets name.. kindly help me to rename the sheets.. I tried manual method and vb codes but it is not working out. I am new to vb macros and thus I was not successful. Please help me to solve this issue.
Related:
- Renaming multiple sheets in a workbook
- How to change sheet direction in google sheets - Guide
- How to lasso multiple objects in photoshop - Guide
- Allow multiple downloads chrome - Guide
- How to delete multiple files on mac - Guide
- How to rotate multiple pictures at once windows 10 - Guide
1 response
vcoolio
Posts
1411
Registration date
Thursday July 24, 2014
Status
Moderator
Last seen
September 6, 2024
262
May 19, 2017 at 08:13 AM
May 19, 2017 at 08:13 AM
Hello Rev,
Have a look at the following link:-
https://ccm.net/forum/affich-419062-excel-macro-rename-all-worksheets
If you want to add the workbook name, you'll only need to adjust this line:-
For example, if your workbook is named Fred, then alter the line as follows:-
Your worksheet tabs should then look like this:-
"Fred, Sheet1", "Fred, Sheet2" etc......
Cheerio,
vcoolio.
Have a look at the following link:-
https://ccm.net/forum/affich-419062-excel-macro-rename-all-worksheets
If you want to add the workbook name, you'll only need to adjust this line:-
Sheets(iSheetCount).Name = iSheetCount
For example, if your workbook is named Fred, then alter the line as follows:-
Sheets(iSheetCount).Name = "Fred, Sheet" & iSheetCount
Your worksheet tabs should then look like this:-
"Fred, Sheet1", "Fred, Sheet2" etc......
Cheerio,
vcoolio.