Search code examples
vbams-wordmacrosmicrosoft-dynamicsnavision

Why don't MS Dynamics NAV allow import/export of Macros Enabled Word Doc for Word Layout


I have been trying to import macro enabled word documents in Custom Report Layout of NAV but it does not save it. Rather it saves it as a normal word document (.docx)

So i was wondering why don't microsoft let us import/export Word Macro-Enabled Document (.docm). This would greatly help to do customizations for clients on the word document itself without having to make changes to the standard report dataset. We could make use of VB for the customizations

Thanks


Solution

  • it would be nice but the reason is for that is that the macro enabled Word file is totally different than the docx. In this case Microsoft Word is just a "Report Designer" to create the layout.

    And there is an another reason : security. You don't want to allow anyone to be able to import and use "some random" VBA script with an ERP system which handles extremely critical data.

    And maybe one more reason : performance. What is the macros is runs for 5 minutes? What if it has unhanded exceptions, infinite loops etc..