问题
Currently, I am working on vb.net that needs to export an excel file with Macros enabled. The Macro is used to disable editing the cells in Excel. For some reason, the options settings on the other computer are not set to Enable all the Macros and the user can edit any cells on the Excel file that could lead to misinformation of the report to be sent on the Factory. This is the link where you can see how to enable all Macro Enable Macros
Now, My question is: How to enable all macros on the Excel file using the code of vb.net?
来源:https://stackoverflow.com/questions/62586010/how-to-enable-all-macros-of-excel-using-vb-net