Document.Content Property
Word Developer Reference |
Returns a Range object that represents the main document story. Read-only.
Syntax
expression.Content
expression A variable that represents a Document object.
Remarks
The following two statements are equivalent:
Visual Basic for Applications |
---|
|
Example
This example changes the font and font size of the text in the active document to Arial 10 point.
Visual Basic for Applications |
---|
|
This example inserts text at the end of the document named "Changes.doc." The For Each...Next statement is used to determine whether the document is open.
Visual Basic for Applications |
---|
|
See Also