Hi,
we have a problem with adding a new VBA module to an existing dotm document.
It works fine, if document has already an VBA module. But it does not work if dotm has none modules.
To reproduce the problem, i have ad…... I used your code for testing: Document doc = new Document("C:\\Temp\\in...PROCEDURAL_MODULE); module.setSourceCode("' Test VBA code"); // Add module to...