Prevents access to unexisting "codeModule" property of "project" "ThisWorkbook" when exporting via "VbaDeveloper > Export code for... > VBAProject (...)".
Original error message after trying to export
Debugging the previous error
Fix
The fix consists of simply checking for the existence of the codeModule property before access.
Prevents access to unexisting "codeModule" property of "project" "ThisWorkbook" when exporting via "VbaDeveloper > Export code for... > VBAProject (...)".
Original error message after trying to export
Debugging the previous error
Fix
The fix consists of simply checking for the existence of the
codeModule
property before access.