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

ID: Q69939

The information in this article applies to:

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

Last Reviewed: July 30, 1997