Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CodeName Property
Collapse the table of content
Expand the table of content

_Document.CodeName Property

Returns the code name for the specified document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

string CodeName { get; }

Property Value

Type: System.String

The code name is the name for the module that houses event macros for a document. The default name for the module is "ThisDocument"; you can view it in the Project window.

Community Additions

ADD
Show:
© 2015 Microsoft