F
FrankB
I have the following code replicated 20 times and works
just fine, however whenever the POWERS TO BE decide to
change the names (TTW) I have to change all references to
those names. There are 5 in every module. A total of 100
manual changes in this module along. Anyway to condense
this VBA module???
Thanks
Frank
Windows("TTW Cap Model.xls").Activate
Application.DisplayAlerts = False
ActiveSheet.Unprotect ("TTW")
ActiveSheet.Shapes("Button 1").Select
Selection.OnAction = "Switchboard.xls!QUICKBASETTW"
Range("A1").Select
ActiveWorkbook.ActiveSheet.PROTECT ("TTW")
ActiveWorkbook.SaveAs Filename:= _
"G:\04Plan\Project Managers\TTW Cap Model.xls",
FileFormat:=xlNormal, _
Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False, _
CreateBackup:=False
ActiveWorkbook.Close
Application.DisplayAlerts = True
just fine, however whenever the POWERS TO BE decide to
change the names (TTW) I have to change all references to
those names. There are 5 in every module. A total of 100
manual changes in this module along. Anyway to condense
this VBA module???
Thanks
Frank
Windows("TTW Cap Model.xls").Activate
Application.DisplayAlerts = False
ActiveSheet.Unprotect ("TTW")
ActiveSheet.Shapes("Button 1").Select
Selection.OnAction = "Switchboard.xls!QUICKBASETTW"
Range("A1").Select
ActiveWorkbook.ActiveSheet.PROTECT ("TTW")
ActiveWorkbook.SaveAs Filename:= _
"G:\04Plan\Project Managers\TTW Cap Model.xls",
FileFormat:=xlNormal, _
Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False, _
CreateBackup:=False
ActiveWorkbook.Close
Application.DisplayAlerts = True