Can I “attach” a Word template with managed code to a new or existing document?
A21. The ability to attach a template (from Templates and Addins on the Word Tools menu) is not implemented. Q22. I have a workbook containing ActiveX controls with managed code extensions. This workbook also contains VBA code. When I open the workbook with macro security set to “High”, the code in the workbook’s Open event runs but the code does not handle events for the ActiveX controls on the workbook. How can I resolve this? A22. When macro security is set to high, the ActiveX controls will always be in design-mode if the workbook contains VBA code. Since you cannot exit design-mode in this scenario, your managed code cannot run. To resolve this problem, you can either remove the VBA code in the workbook or digitally sign the workbook’s VBA project.
Related Questions
- In my Word document my citations have suddenly disappeared and have been replaced by lots of code with curly and angle brackets. What has gone wrong?
- Can I "attach" a Word template with managed code to a new or existing document?
- Can I copy my Microsoft Word document and paste it into a Swiftpage template?