WD: WordBasic Examples: OutlineShowFirstLine |
Q109808
This article contains an example that demonstrates the use of the following WordBasic statements and functions:
OutlineShowFirstLineThis article supplements the information in online Help. To open this Help topic, choose Contents from the Help menu and then choose the "Programming with Microsoft Word" topic.
OutlineShowFirstLine [On]
Specifies whether or not to display the
On first line of body text:
-- ---------------------------------------
0 (zero) All body text is shown.
1 or omitted Only the first line of body text is shown.
The OutlineShowFirstLine() function returns the following values.
Value Explanation
----- -----------
0 (zero) All lines of body text are displayed.
-1 Only the first line of body text is displayed.
Sub MAIN
On Error Goto notoutlineview
If OutlineShowFirstLine() = 0 Then
OutlineShowFirstLine
MsgBox "Only the first line of body text is shown in \
outline view."
Else
OutlineShowFirstLine 0
MsgBox "All body text is shown in outline view."
EndIf
Goto done
notoutlineview:
MsgBox "Switch to outline view to use the OutlineShowFirstLine \
command."
done:
End Sub
Additional query words: macro
Keywords : kb3rdparty kbprint kbfield winword macword word6 winword2 word7 word95
Issue type : kbinfo
Technology :
|
Last Reviewed: November 4, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |