Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I “attach” a Word template with managed code to a new or existing document?

0
Posted

Can I “attach” a Word template with managed code to a new or existing document?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123