Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Help and How-to
Search
Search
 
Check for updates: (c) Microsoft
Microsoft Update
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
About .NET Macro Security
 

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
advertisement