How to Use Percent, Caret, and Plus SendKeys in WinWord

Last reviewed: July 30, 1997
Article ID: Q69939
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

The SendKeys statement is the only way to "send" keyboard instructions to other Windows applications. For example, WordBASIC instructions will not interact with the Control Panel in Windows without using SendKeys.

The percent (%), caret (^), and plus (+) signs are special reserved SendKeys.

The % sign represents the ALT key used to access Windows menus. SendKeys "% up{enter}" accesses the Control Panel from Word for Windows.

The ^ sign represents the CTRL key. SendKeys "^{esc}" brings up the task list.

The + sign represents the SHIFT key. SendKeys "^+{F12)" brings up the File Print dialog box.

There may be specific applications that need to have a %, ^, or + sign sent to them, without having the special meanings attached to them. This is done by surrounding the characters with curly brackets:

   For the %:Sendkeys "{%}
   For the +:Sendkeys "{+}
   For the ^:Sendkeys "{^}

Note: The curly brackets are keystrokes NOT field codes.

Kbcategory: kbusage kbmacro kbhowto KBSubcategory:


Additional query words: 2.0 2.0 6.0 6.0a 6.0c winword winword2
word6 word6
Version : 1.x 2.x 6.0
Platform : WINDOWS


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.