Microsoft Office Word 2003 documents and templates, along with Microsoft Office Excel 2003 workbooks, can run code in referenced .NET assemblies regardless of the computer's High, Medium, or Low setting in the Security dialog box of Word and Excel (Tools menu, Macro submenu, Security command). This is because .NET assembly code security is managed by the Microsoft .NET Framework, not by Word or Excel.
To prevent code in a referenced .NET assembly from running in a Word document or template or Excel workbook, do one of the following:
- Before you open the document, template, or workbook, remove the _AssemblyLocation0 and _AssemblyName0 custom properties from the document's, template's, or workbook's list of custom document properties.
- Remove the .NET assembly's associated code group from the computer on which the document, template, or workbook is located. You can remove or change code group properties by using the Microsoft .NET Framework Configuration tool or the Code Access Security Policy Tool. For more information on these tools, see the Microsoft .NET Framework Developer's Guide, included with Microsoft Visual Studio .NET, or online at the Microsoft Developer Network Web site