LadyWraith
Board Regular
- Joined
- Aug 1, 2014
- Messages
- 50
Hi all. I have a macro I wrote in vba (2010) to update the years in a template and change the sheet name. The code is based on the individual sheets original name. Is there a way or a line anyone can think of that will change the code to match the new sheet name after the macro has done it's thing?
I have :
Sheets("FY15 GM Forecast (AMSG) Total").Select
'Change year on tab
ActiveSheet.Name = "FY" & Yr & " GM Forecast (AMSG) Total"
::do stuff here::
" this is where I want to edit above line to match the new sheet name.
Is this possible? I also have to add the code to update other macros inserted in the workbooks, too.
Thanks,
LW
I have :
Sheets("FY15 GM Forecast (AMSG) Total").Select
'Change year on tab
ActiveSheet.Name = "FY" & Yr & " GM Forecast (AMSG) Total"
::do stuff here::
" this is where I want to edit above line to match the new sheet name.
Is this possible? I also have to add the code to update other macros inserted in the workbooks, too.
Thanks,
LW