Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,124
- Office Version
- 365
- Platform
- Windows
Hi All,
I'm working with an xlsm parent document where the sheet's tab names changes in producing a new children workbook.
My question is is there a way to generically assign a sheet name according to its assigned worksheet#/sheet# in the code below, so I can avoid using over a hundred sheet names in the parent document?
Please let me know, if you should need an example/further explanation.
Thank you!
Pinaceous
I'm working with an xlsm parent document where the sheet's tab names changes in producing a new children workbook.
My question is is there a way to generically assign a sheet name according to its assigned worksheet#/sheet# in the code below, so I can avoid using over a hundred sheet names in the parent document?
Code:
Sub Workbook_SheetTabName
Select Case Sh.Name
Case "Month001": Call Refresh1
Case "Month002": Call Refresh2
'so on until ...
Case "Month099": Call Refresh1
Case "Month100": Call Refresh2
Case Else: Call Refresh4
End Select
End Sub
Please let me know, if you should need an example/further explanation.
Thank you!
Pinaceous
Last edited: