Forum Discussion
Errors occurred during load while opening a macro
I am using office 365, When I open a Macro enabled excel sheet through an windows .net application it throws an error Microsoft Visual Basic "error occurred during load". Then will display error: Cannot run the macro <macro_name>.The macro may not be available in this workbook or all macros may have been disabled".
I tried both repairing office and reinstalling, it dint work out, could you please suggest some solution for this
1 Reply
Hello,
have you checked whether your .net application is capable of opening macro-enabled files in the first place? Maybe it does not have that functionality. I'm guessing here, but there could be many issues. If the workbook has events that run when the file is opened, then that code will try to run. Does your .net app allow code execution? Is the macro enabled file known to the .net app as a trusted file?