Special Bookmarks in the WordBasic Macro Language

ID: Q60003

The information in this article applies to:

Some macro statements can use the following special bookmarks in Microsoft Word:

   Bookmark                  Definition
   --------                  ----------

   \Sel                      Current selection
   \PrevSel1                 Previous selection 1 where editing occurred
                              (0 at start)
   \PrevSel2                 Previous selection 2 where editing occurred
                              (0 at start)
   \StartOfSel               Start of selection
   \EndOfSel                 End of selection
   \Line                     Current line (first of selection)
   \Char                     Current character (first of selection)
   \Para                     Current paragraph (first of selection)
   \Section                  Current section (first of selection)
   \Doc                      Entire document
   \Page                     Current page
   \StartOfDoc               Beginning of document
   \EndOfDoc                 End of document
   \Cell                     Cell
   \Table                    Table
   \HeadingLevel             A heading level

Example

   EditGoto "\StartOfDoc"

Reference(s):

"Using WordBasic," by WexTech Systems and Microsoft, pages 88-90 "Word for Windows and 0S/2 Technical Reference", pages 103-107.

Kbcategory: kbusage kbmacro KBSubcategory: Additional query words: 1.x 2.0 2.0a 7.0 word95 winword word6 6.0.1 word7 winword 2.0a-CD 2.0b 2.0c winword2 6.0 6.0a 6.0c macword

Keywords          : kbmacro kbusage winword word6 word7 word95 
Version           : 1.x 2.x 6.0 6.0a 6.0c 7.0

Last Reviewed: July 31, 1997