WD: WordBasic Examples: Toggle Commands |
Q106334
This article contains a sample macro that demonstrates the use of the following WordBasic statements or functions:
ToggleFull
ToggleMainTextLayer
TogglePortrait
This article supplements the information in online Help. To open this Help
topic in Word for Windows, click Contents on the Help menu and then
choose the "Programming with Microsoft Word" topic. In Word for the
Macintosh, click the Help icon, select Microsoft Word Help and choose the
"Programming with Microsoft Word" topic.
ToggleFull
Example:
Sub MAIN
If SelInfo(27) = - 1 Then FileNewDefault
MsgBox "Press OK to Toggle Full Screen"
ToggleFull
MsgBox "Press OK to Toggle Back"
ToggleFull
End Sub
ToggleMainTextLayer
Example:
Sub MAIN
If SelInfo(27) = - 1 Then FileNewDefault
Insert "This text is visible on the main text layer"
ViewHeader
MsgBox "Press OK to switch to the main text layer"
ToggleMainTextLayer
End Sub
TogglePortrait
Sub MAIN
If SelInfo(27) = - 1 Then FileNewDefault
ViewPage
ViewZoom .FullPage
TogglePortrait
For Count = 1 To 300
'...Pause
Next count
TogglePortrait
End Sub
Additional query words:
Keywords : kbmacro kbprg kbdtacode kbmacroexample winword macword word6 word7 word95
Issue type : kbhowto kbinfo
Technology :
|
Last Reviewed: November 4, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |