The Document Object
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
The Document object is just below the Application object in Word's object model and is at the heart of Word programming. When you open a new document from the user interface, you create a new Document object. Each document you create or open is added to the Documents collection, and the document that has the focus is called the active document.
In This Section
- Working with the Document Object
Create or open documents and add them to the Documents collection. - Opening, Creating, Saving, and Closing New Documents
Create and manipulate new documents by using the Documents collection's methods.
Related Sections
- Working with Microsoft Word Objects
Use VBA to work with the Microsoft® Word Document object, Application object, and Documents collection. - Understanding Application-Level Objects
Learn about the Application object and other objects that affect Word. - Working with Document Content
Work with objects contained in the Document object.