WD: WordBasic Examples: Shadow and Shadow() |
Q123725
This article contains an example that demonstrates the use of the following WordBasic statement and function:
Shadow
Shadow()
This supplements the information in Word Help.
Shadow [On]
Shadow()
The On argument tells the Shadow statement to add or remove the shadow
format. The On argument can have the following values:
1 Will apply the shadow format to the current selection.
0(zero) Removes the shadow format from the current selection.
Omitted Toggles the shadow format.
The Shadow statement adds or removes the shadow character format for the
current selection. It can also be used to control the shadow format for
characters to be inserted at the insertion point.
0(zero) If none of the selected text has the Shadow format.
-1 If part of the selected text has the Shadow format.
1 If all of the selected text has the Shadow format.
NOTE: The Shadow and Shadow() commands are not available on the Windows
platform and will generate WordBasic errors.
Sub MAIN:
EditSelectAll
Shadow 1
End Sub
The following macro will check to see if any of the currently selected text
has the shadow format. If none of the selected text has the shadow format,
the macro will apply the Shadow format to the selection.
Sub MAIN:
If (Shadow() = 0) Then
Shadow
End If
End Sub
Additional query words: macro example
Keywords : kbmacro kbmacroexample macword word6
Issue type : kbhowto
Technology :
|
Last Reviewed: November 4, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |