Create and Modify VBA Macros in Word Documents using C#

Microsoft supports adding VBA macros in MS Word documents to automate or trigger various operations. While working with Word documents programmatically, you may have to manipulate VBA macros. For such cases, this article demonstrates how to add or modify VBA macro in a Word document in C#. Create and Modify VBA Macros in Word Documents using C# A new property VbaModule.SourceCode has been added in this release to get or set VBA project module source code.
September 20, 2019 · 2 min · Tahir Manzoor