Is it possible to extract the text of VBA source code from Office documents? Do I need to enable editing first to even make the macro code visible?
Background:
I'm developing an small application in VB6 with the purpose of opening an Excel or Word file and copy the Macro code (if any) into a textbox to investigate. I work for a company that receives a lot of requests to forward blocked mails. These mails are blocked because they have the .xls, xlsm, doc, docx, et cetera extensions. The problem is, is that I need to enable "Enable editing" for viewing the code and I don't want to do that, because if there is any code behind it, it will run.