Hello,
I have a macro that essentially does the following:- Opens a file
Adds a button to the opened workbook
changes the "OnAction" property to a macro that is within the open workbook
however, I am not able to do the last step...
here is the code I am using:
where Report is a Workbook variable that was set to the opened file.
The error I get is:
"Cannot run the macro '[wbname]!Module1.OpenHyperlink'. The macro may not be available in this workbook or all macros may be disabled"
Is there a reason for this or something I can do to fix it?
NOTE: the workbook is correct and the shape is correct (I have checked)
Bookmarks