WD: WordBasic Examples: CenterPara, CenterPara() |
Q109746
This article contains an example that demonstrates the use of the following WordBasic statements and functions:
CenterParaThis 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.
CenterPara()
CenterPara
CenterPara()
Sub MAIN
If CenterPara() = 1 Then
MsgBox "This selection is already centered."
ElseIf CenterPara() = - 1 Then
MsgBox "This selection is mixed formats."
ElseIf CenterPara() = 0 Then
MsgBox "This selection will be centered."
CenterPara
End If
End Sub
Additional query words: center
Keywords : kbgraphic kbmacro winword macword word6 winword2 word7 word95
Issue type : kbinfo
Technology :
|
Last Reviewed: November 4, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |