Hello everyone,
I created some codes that runs a macro. However, I noticed that if the users changes the Workbook's name, the macro will not run correctly. Below is partial of my codes. As you can see the name of the Excel file I have is "Annual Report.xlsm". What can I do to make it properly run no matter what workbook name is? Thank you!!
I created some codes that runs a macro. However, I noticed that if the users changes the Workbook's name, the macro will not run correctly. Below is partial of my codes. As you can see the name of the Excel file I have is "Annual Report.xlsm". What can I do to make it properly run no matter what workbook name is? Thank you!!
VBA Code:
Application.Run "Annual Report.xlsm'!Step1_Macro"