Discussion:
Create Shortcut key by Add-In
(too old to reply)
thirith
2007-07-24 08:32:02 UTC
Permalink
hi there,

I am doing some add-in program by using the VB.net for coding.
I tries to find the technique for creating shortcut in ms Word 2007. For
example when user press "CTRL+ALT+T", I want to replace with the text
"Technical Problem." into the active document at the cursor point.

Please help me!

thirith.
Doug Robbins - Word MVP
2007-07-24 19:37:25 UTC
Permalink
I don't know about VB.Net, but using VBA, you would just use:

Selection.InsertBefore "Technical Problem"

in a macro that you assigned to that shortcut.

However, I would just create an AutoCorrect entry that replaced tp with
Technical Problem. That would be much easier to use than to use Ctrl+Alt+T

To create AutoCorrect entries in Word 2007, you click on AutoCorrect on the
Proofing dialog that is displayed when you click on Proofing in the left
pane after clicking on Word Options in the bottom border of the dialog that
appears when you click on the pizza button.
--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
Post by thirith
hi there,
I am doing some add-in program by using the VB.net for coding.
I tries to find the technique for creating shortcut in ms Word 2007. For
example when user press "CTRL+ALT+T", I want to replace with the text
"Technical Problem." into the active document at the cursor point.
Please help me!
thirith.
Loading...