Hi everyone,
I am new to the world of VBA programming. So, some of the queries may be very basic. Please bear with me.
I am running a code to convert .docm files in a folder to .docx. While running the code, some of the files are getting converted successfully but for some of the files, I am getting compilation error: 'Compile error in hidden module : This document'. One thing I noted that when I am opening such files manually, I get a pop-up of MS Word Security Notice to Enable/Disable the Macro.
Please let me if there is any solution to overcome the compilation error.
Below is the VBA code I am using:
Bookmarks