Document.ViewCode Method (Word)
Displays the code window for the selected Microsoft ActiveX control in the specified document.
Syntax
expression .ViewCode
expression Required. A variable that represents a Document object.
Remarks
This method is available only from outside Microsoft Word.