Window.Document Property
Word Developer Reference |
Returns a Document object associated with the specified pane, window, or selection. Read-only.
Syntax
expression.Document
expression A variable that represents a Window object.
Example
This example sets myDoc to the document associated with the active window. The focus is changed to the next window, and the window is split. The Activate method is used to switch back to the original document.
Visual Basic for Applications |
---|
|
See Also