I have a master workbook that contains this macro. When I rename the workbook, the macro doesn't work because the name of the workbook changes. Is there something I can substitute in the macro instead of "Ovations Weekly Field Service Production Sheet Master.xls" that will work in a workbook no matter what it is named?
Thank you!
Application.Run "'Ovations Weekly Field Service Production Sheet Master.xls'!unprotect"
Windows("Ovations Weekly Field Service Production Sheet Master.xls").Activate
Application.Run "'Ovations Weekly Field Service Production Sheet Master.xls'!OvationsHospital"
Windows("Ovations Weekly Field Service Production Sheet Master.xls").Activate
Application.Run "'Ovations Weekly Field Service Production Sheet Master.xls'!protect"
Thank you!
Application.Run "'Ovations Weekly Field Service Production Sheet Master.xls'!unprotect"
Windows("Ovations Weekly Field Service Production Sheet Master.xls").Activate
Application.Run "'Ovations Weekly Field Service Production Sheet Master.xls'!OvationsHospital"
Windows("Ovations Weekly Field Service Production Sheet Master.xls").Activate
Application.Run "'Ovations Weekly Field Service Production Sheet Master.xls'!protect"