Microsoft KB Archive/69939

{|
 * width="100%"|

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

 * }

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

-

SUMMARY
The SendKeys statement is the only way to &quot;send&quot; 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 &quot;% up{enter}&quot; accesses the Control Panel from Word for Windows.

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

The + sign represents the SHIFT key. SendKeys &quot;^+{F12)&quot; 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 &quot;{%} For the +:Sendkeys &quot;{+} For the ^:Sendkeys &quot;{^} Note: The curly brackets are keystrokes NOT field codes.

Additional query words: 2.0 6.0 winword winword2 word6

Keywords : kbofficeprog

Issue type :

Technology :