Special Bookmarks in the WordBasic Macro Language

Last reviewed: July 30, 1997
Article ID: Q60003
The information in this article applies to:
  • Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c. 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0
  • Word for the Macintosh, versions 6.0, 6.0.1

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 : winword word6 word7 word95 kbmacro kbusage
Version : 1.x 2.x 6.0 6.0a 6.0c 7.0


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.