Gets a Range that represents the main document story.
'Usage Dim instance As Document Dim value As Range value = instance.Content 'Declaration <BrowsableAttribute(False)> _ Public ReadOnly Property Content As Range
The following code example adds text to the first paragraph in the document and then creates a range that includes all of the content in the document. The code then sets the font size for the contents of the range to 24.
This example is for a document-level customization.
Private Sub DocumentContent() Me.Paragraphs(1).Range.InsertParagraphAfter() Me.Paragraphs(1).Range.Text = "This is some sample text." Dim myRange As Word.Range = Me.Content myRange.Font.Size = 24 End Sub