templates and keyboard shortcuts

D

Dan

Hi, I have a problem with templates and keyboard shortcuts; here is a sample
dummy scenario:

1) I create a new document, and create a new macro into it. Let's say the
macro is named Dummy and just shows a message box.
2) from the Tools / Customize menu command I assign this macro to say ALT+1.
3) I save the newly created document AS a template (DOT) e.g. in Program
Files folder.

Now, if I open the template and press ALT+1 the macro is executed as
expected. If instead I create or open another document, and goto Tools /
Templates and addins and I add the DOT as a global template, **no keyboard
binding I assigned to it (step 2) works**.
Thus, how can I create a DOT file to be loaded as a global template so that
its keybindings work? I also tried to assign the keybindings
programmatically in Autoexec, but this works only if the user has admin
privileges. How can I let this work?

Thanks to all!
 
C

Charles Kenyon

Which version of Word?

Keybindings in global templates work globally unless there is a conflict
among globals. You don't want to be assigning keybindings in an AutoExec
unless you are being very careful with your customization context.

Are you sure that you are saving your keybinding in your template? (The
default is normal.dot.)
--
Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://www.addbalance.com/word/index.htm>

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://www.addbalance.com/usersguide/index.htm>

Word Resources Page
<URL: http://www.addbalance.com/word/wordwebresources.htm>

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
D

Dan

Thanks Charles, you're right I forgot to menion the version: I'm referring
to Word 2003. The customization context is set to the template itself, not
to normal.dot. If you follow the sample procedure I described in my previous
post, the problem should be reproduced (I hope so... :). Any hint?
 
C

Charles Kenyon

My Word 2003 computer is in the shop right now (lightening). Nevertheless, I
don't need to replicate your procedure. I have 15 Add-Ins regularly loaded,
most of which are mine and some of which do have custom keyboard shortcuts.

If you have your template open and on the screen (not just loaded as an
Add-In) and use the Customize > Keyboard commands to assign keystrokes to
macros (or commands or styles or AutoText), with the template being the
recipient, those keybindings will work. You save the template and then put
it in the StartUp folder to load it as an Add-In.

Unless your shortcuts conflict with another Add-In, they will work in all
documents while your template is loaded as an Add-In. If this is not the
case, write back with the specific keyboard shortcuts you are trying to
save.

You can get Chris Woodman's shortcut organizer Add-In to actually display a
list of keybindings in a template. (It uses an interface like the
Organizer.) See http://addbalance.com/word/movetotemplate.htm for
step-by-step instructions on moving / sharing / copying customizations
including AutoText, AutoCorrect, keyboard assignments, macros, etc. That
page has a link to Chris Woodman's Add-In.
--
Charles Kenyon

Word New User FAQ & Web Directory:
http://www.addbalance.com/word/index.htm

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
http://www.addbalance.com/usersguide/index.htm

Word Resources Page
http://www.addbalance.com/word/wordwebresources.htm

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top