Macro shortcut keys in Word 2007 template don’t work

A

almeck

I have placed a .dot file template in Word’s (2007) Startup folder so that
the macros it contains will be available whenever I run Word. My intent was
also that the shortcut keys that have been assigned to the macros (in the
..dot file that’s being loaded at Startup) would also work: they don’t. The
file, though, is loaded as expected (as can be seen via Developer > Document
Template).

However, if I remove the template file from Word’s Start up folder, restart
Word, and *manually* load the .dot template (from its “home†in Trusted
Templates), the shortcut keys *do* work.

Thoughts?
 
S

Stefan Blom

This sounds like a conflict of key assignments. The keyboard shortcut for
your macro could be assigned to something else in the current document (or
its attached template), in which case the latter will take precedence. If
you look in the Customize Keyboard dialog box, does that give a clue to what
is happening?
 
A

almeck

Thanks for replying, Stefan.

I believe there are no other macros assigned to the key I specified (ctrl-W)
in the loaded-at-startup template. As a test, I chose a macro at random (in
a blank doc) and tried to assign ctrl-W to it. I get “currently assigned to
[unassigned]â€, which I take as proff that ctrl-hasn’t been assigned to
anything.

My goal is to wake upin a new Word doc, type ctrl-W, and have that macro
run. After further investigation, I see that my .dot file is *loaded*, but
not *attached*. Once I attach it (via Developer Template), *then* ctrl-W
works as hoped.

So, I guess now my question is:

1) Given that I’ve got the .dot file *loaded* upon Word opening,
2) how do/can I cause that template to be *attached* automatically upon Word
opening?
 
P

Peter T. Daniels

Ctrl-W is the universal shortcut key for "Close This File."

Thanks for replying, Stefan.

I believe there are no other macros assigned to the key I specified (ctrl-W)
in the loaded-at-startup template.  As a test, I chose a macro at random (in
a blank doc) and tried to assign ctrl-W to it.  I get “currently assigned to
[unassigned]”, which I take as proff that ctrl-hasn’t been assigned to
anything.

My goal is to wake upin a new Word doc, type ctrl-W, and have that macro
run.  After further investigation, I see that my .dot file is *loaded*,but
not *attached*.  Once I attach it (via Developer Template), *then* ctrl-W
works as hoped.

So, I guess now my question is:

1)      Given that I’ve got the .dot file *loaded* upon Word opening,
2)      how do/can I cause that template to be *attached* automatically upon Word
opening?



Stefan Blom said:
This sounds like a conflict of key assignments. The keyboard shortcut for
your macro could be assigned to something else in the current document (or
its attached template), in which case the latter will take precedence. If
you look in the Customize Keyboard dialog box, does that give a clue towhat
is happening?
 
S

Stefan Blom

If you see "[unassigned]" in the dialog box, the Ctrl+W shortcut hasn't been
properly assigned to the macro.

Also, note that if you are attaching the template to a certain document, you
don't need to load the template as an add-in.

In fact, attaching and loading are used for different purposes: When you
load a template as an add-in, your goal is to get global access to its
macros, building blocks, and keyboard shortcuts. When you attach a template,
you want access to those items for a particular document (or a particular
set of documents).

In addition, attaching gives you access to style definitions, assuming that
you choose "Update document styles" in the Templates and Add-Ins dialog box.

--
Stefan Blom
Microsoft Word MVP



almeck said:
Thanks for replying, Stefan.

I believe there are no other macros assigned to the key I specified
(ctrl-W)
in the loaded-at-startup template. As a test, I chose a macro at random
(in
a blank doc) and tried to assign ctrl-W to it. I get "currently assigned
to
[unassigned]", which I take as proff that ctrl-hasn't been assigned to
anything.

My goal is to wake upin a new Word doc, type ctrl-W, and have that macro
run. After further investigation, I see that my .dot file is *loaded*,
but
not *attached*. Once I attach it (via Developer Template), *then* ctrl-W
works as hoped.

So, I guess now my question is:

1) Given that I've got the .dot file *loaded* upon Word opening,
2) how do/can I cause that template to be *attached* automatically upon
Word
opening?



Stefan Blom said:
This sounds like a conflict of key assignments. The keyboard shortcut for
your macro could be assigned to something else in the current document
(or
its attached template), in which case the latter will take precedence. If
you look in the Customize Keyboard dialog box, does that give a clue to
what
is happening?
 
A

almeck

OK, so here's what I've learned:

Putting a template in Word's Startup folder will "load" it as a "Global"
template upon Word opening. BUT, you have to take steps to use anything in
it (so far, it's just "available"). There is only(?) one wat to "get" to
stuff that's in a template: You must "attach" the template (via Developer >
Document Template > "Attach" and browse to Word's Startup folder to find it
to attach). After attaching, any keyboard shortcuts that been assigned in
the template will become active.

If you want to obviate the need to re-attach the template everytime you open
Word, (after attaching the template and making the template's macros
accessible) you could create keyboard shortcuts that match those in the
template. These shortcuts will be stored in Normal.dotm (which will be
checked first when a shortcut key is pressed). Thereafter, upon opening
Word, the keyboard shortcuts you duplicated (now in Normal.dotm) will fire
off the macros in the loaded template (even though you haven't manually
attached it).

Stefan Blom said:
If you see "[unassigned]" in the dialog box, the Ctrl+W shortcut hasn't been
properly assigned to the macro.

Also, note that if you are attaching the template to a certain document, you
don't need to load the template as an add-in.

In fact, attaching and loading are used for different purposes: When you
load a template as an add-in, your goal is to get global access to its
macros, building blocks, and keyboard shortcuts. When you attach a template,
you want access to those items for a particular document (or a particular
set of documents).

In addition, attaching gives you access to style definitions, assuming that
you choose "Update document styles" in the Templates and Add-Ins dialog box.

--
Stefan Blom
Microsoft Word MVP



almeck said:
Thanks for replying, Stefan.

I believe there are no other macros assigned to the key I specified
(ctrl-W)
in the loaded-at-startup template. As a test, I chose a macro at random
(in
a blank doc) and tried to assign ctrl-W to it. I get "currently assigned
to
[unassigned]", which I take as proff that ctrl-hasn't been assigned to
anything.

My goal is to wake upin a new Word doc, type ctrl-W, and have that macro
run. After further investigation, I see that my .dot file is *loaded*,
but
not *attached*. Once I attach it (via Developer Template), *then* ctrl-W
works as hoped.

So, I guess now my question is:

1) Given that I've got the .dot file *loaded* upon Word opening,
2) how do/can I cause that template to be *attached* automatically upon
Word
opening?



Stefan Blom said:
This sounds like a conflict of key assignments. The keyboard shortcut for
your macro could be assigned to something else in the current document
(or
its attached template), in which case the latter will take precedence. If
you look in the Customize Keyboard dialog box, does that give a clue to
what
is happening?

--
Stefan Blom
Microsoft Word MVP



I have placed a .dot file template in Word's (2007) Startup folder so
that
the macros it contains will be available whenever I run Word. My
intent
was
also that the shortcut keys that have been assigned to the macros (in
the
.dot file that's being loaded at Startup) would also work: they don't.
The
file, though, is loaded as expected (as can be seen via Developer >
Document
Template).

However, if I remove the template file from Word's Start up folder,
restart
Word, and *manually* load the .dot template (from its "home" in Trusted
Templates), the shortcut keys *do* work.

Thoughts?
 
T

Tony Jollans

In a word: "No"! You seem to be jumping to a lot of conclusions that are,
almost, wholly false.

When you have a template in Word's Startup folder, it will be loaded as a
global template. This means that all the macros in it are available to use,
(but not to edit). You don't have to do anything else to make things work.
If you have a shortcut key assigned, in the template, to a macro in the
template, it should work; if it doesn't, you have something set up wrongly.
My first guess would be that you have the key assignment stored in Normal,
rather than in your global template.

--
Enjoy,
Tony

www.WordArticles.com

almeck said:
OK, so here's what I've learned:

Putting a template in Word's Startup folder will "load" it as a "Global"
template upon Word opening. BUT, you have to take steps to use anything
in
it (so far, it's just "available"). There is only(?) one wat to "get" to
stuff that's in a template: You must "attach" the template (via DeveloperDocument Template > "Attach" and browse to Word's Startup folder to find
it
to attach). After attaching, any keyboard shortcuts that been assigned in
the template will become active.

If you want to obviate the need to re-attach the template everytime you
open
Word, (after attaching the template and making the template's macros
accessible) you could create keyboard shortcuts that match those in the
template. These shortcuts will be stored in Normal.dotm (which will be
checked first when a shortcut key is pressed). Thereafter, upon opening
Word, the keyboard shortcuts you duplicated (now in Normal.dotm) will fire
off the macros in the loaded template (even though you haven't manually
attached it).

Stefan Blom said:
If you see "[unassigned]" in the dialog box, the Ctrl+W shortcut hasn't
been
properly assigned to the macro.

Also, note that if you are attaching the template to a certain document,
you
don't need to load the template as an add-in.

In fact, attaching and loading are used for different purposes: When you
load a template as an add-in, your goal is to get global access to its
macros, building blocks, and keyboard shortcuts. When you attach a
template,
you want access to those items for a particular document (or a particular
set of documents).

In addition, attaching gives you access to style definitions, assuming
that
you choose "Update document styles" in the Templates and Add-Ins dialog
box.

--
Stefan Blom
Microsoft Word MVP



almeck said:
Thanks for replying, Stefan.

I believe there are no other macros assigned to the key I specified
(ctrl-W)
in the loaded-at-startup template. As a test, I chose a macro at
random
(in
a blank doc) and tried to assign ctrl-W to it. I get "currently
assigned
to
[unassigned]", which I take as proff that ctrl-hasn't been assigned to
anything.

My goal is to wake upin a new Word doc, type ctrl-W, and have that
macro
run. After further investigation, I see that my .dot file is *loaded*,
but
not *attached*. Once I attach it (via Developer Template), *then*
ctrl-W
works as hoped.

So, I guess now my question is:

1) Given that I've got the .dot file *loaded* upon Word opening,
2) how do/can I cause that template to be *attached* automatically upon
Word
opening?



:

This sounds like a conflict of key assignments. The keyboard shortcut
for
your macro could be assigned to something else in the current document
(or
its attached template), in which case the latter will take precedence.
If
you look in the Customize Keyboard dialog box, does that give a clue
to
what
is happening?

--
Stefan Blom
Microsoft Word MVP



I have placed a .dot file template in Word's (2007) Startup folder so
that
the macros it contains will be available whenever I run Word. My
intent
was
also that the shortcut keys that have been assigned to the macros
(in
the
.dot file that's being loaded at Startup) would also work: they
don't.
The
file, though, is loaded as expected (as can be seen via Developer >
Document
Template).

However, if I remove the template file from Word's Start up folder,
restart
Word, and *manually* load the .dot template (from its "home" in
Trusted
Templates), the shortcut keys *do* work.

Thoughts?
 
A

almeck

Well Tony, I just composed a lengthy reply (thanking you for your comments
below), posted it, and got a "post didn't happen" message.

So, here's a quick summary:

1) You are right, the shortcuts in the template SHOULD be instantly
available upon merely loading the template. In fact, I believe that was the
case a couple of days ago, but then it stopped working yesterday.

2) My PC (XP) has been on and intensively used for the last week. 20
minutes ago, I opened Word and the Office Button wouldn't work! I performed
an overdue reboot, and now the shortcuts work as you describe below.

3) However, with the newly re-booted and working Word, I have noticed that
NO shortcut keys are shown as assigned in Customize > Keyboard shortcuts.
Not only don't I see the ctrl-W shortcut (from the template) as assigned to a
macro, the many shortcut keys I had assigned in Word 2003 a) STILL WORK, but
b) are not shown assigned to anything. Of course, I forget exactly how I
migrated my Word 2003 Normal.dot to Word 2007's Normal.dotm, but I'm guessing
however I did it might be the cause of the working-but-not-shown-as-assigned
shortcuts. But what about my template's ctrl-W shortcut: shouldn't I be
seeing it as assigned (to the template macro that it successfully invokes)?

I realize this is another problem that you may not wish to respond to, but,
in any case, your insistence that things should work as you describe below
helped me push foward to the reboot/fix. Thanks!

Al

Tony Jollans said:
In a word: "No"! You seem to be jumping to a lot of conclusions that are,
almost, wholly false.

When you have a template in Word's Startup folder, it will be loaded as a
global template. This means that all the macros in it are available to use,
(but not to edit). You don't have to do anything else to make things work.
If you have a shortcut key assigned, in the template, to a macro in the
template, it should work; if it doesn't, you have something set up wrongly.
My first guess would be that you have the key assignment stored in Normal,
rather than in your global template.

--
Enjoy,
Tony

www.WordArticles.com

almeck said:
OK, so here's what I've learned:

Putting a template in Word's Startup folder will "load" it as a "Global"
template upon Word opening. BUT, you have to take steps to use anything
in
it (so far, it's just "available"). There is only(?) one wat to "get" to
stuff that's in a template: You must "attach" the template (via DeveloperDocument Template > "Attach" and browse to Word's Startup folder to find
it
to attach). After attaching, any keyboard shortcuts that been assigned in
the template will become active.

If you want to obviate the need to re-attach the template everytime you
open
Word, (after attaching the template and making the template's macros
accessible) you could create keyboard shortcuts that match those in the
template. These shortcuts will be stored in Normal.dotm (which will be
checked first when a shortcut key is pressed). Thereafter, upon opening
Word, the keyboard shortcuts you duplicated (now in Normal.dotm) will fire
off the macros in the loaded template (even though you haven't manually
attached it).

Stefan Blom said:
If you see "[unassigned]" in the dialog box, the Ctrl+W shortcut hasn't
been
properly assigned to the macro.

Also, note that if you are attaching the template to a certain document,
you
don't need to load the template as an add-in.

In fact, attaching and loading are used for different purposes: When you
load a template as an add-in, your goal is to get global access to its
macros, building blocks, and keyboard shortcuts. When you attach a
template,
you want access to those items for a particular document (or a particular
set of documents).

In addition, attaching gives you access to style definitions, assuming
that
you choose "Update document styles" in the Templates and Add-Ins dialog
box.

--
Stefan Blom
Microsoft Word MVP



Thanks for replying, Stefan.

I believe there are no other macros assigned to the key I specified
(ctrl-W)
in the loaded-at-startup template. As a test, I chose a macro at
random
(in
a blank doc) and tried to assign ctrl-W to it. I get "currently
assigned
to
[unassigned]", which I take as proff that ctrl-hasn't been assigned to
anything.

My goal is to wake upin a new Word doc, type ctrl-W, and have that
macro
run. After further investigation, I see that my .dot file is *loaded*,
but
not *attached*. Once I attach it (via Developer Template), *then*
ctrl-W
works as hoped.

So, I guess now my question is:

1) Given that I've got the .dot file *loaded* upon Word opening,
2) how do/can I cause that template to be *attached* automatically upon
Word
opening?



:

This sounds like a conflict of key assignments. The keyboard shortcut
for
your macro could be assigned to something else in the current document
(or
its attached template), in which case the latter will take precedence.
If
you look in the Customize Keyboard dialog box, does that give a clue
to
what
is happening?

--
Stefan Blom
Microsoft Word MVP



I have placed a .dot file template in Word's (2007) Startup folder so
that
the macros it contains will be available whenever I run Word. My
intent
was
also that the shortcut keys that have been assigned to the macros
(in
the
.dot file that's being loaded at Startup) would also work: they
don't.
The
file, though, is loaded as expected (as can be seen via Developer >
Document
Template).

However, if I remove the template file from Word's Start up folder,
restart
Word, and *manually* load the .dot template (from its "home" in
Trusted
Templates), the shortcut keys *do* work.

Thoughts?
 
P

Peter T. Daniels

This minght not be irrelevant: A couple of weeks ago, one of the MVPs
(I think Pamelia) told me I could print a list of my custom keyboard
shortcuts with a setting in the Print dialog, and I got the list
showing which ones were assigned to various accented letters and which
ones (mistakenly) were attached to various accented letters in a
specific font (so they didn't work in search boxes, and they inserted
letters in the wrong font in my documents). I went into Insert Symbol
and fixed them all, and they work properly, but when I again printed
the list, the list didn't register the corrections.

Well Tony, I just composed a lengthy reply (thanking you for your comments
below), posted it, and got a "post didn't happen" message.

So, here's a quick summary:

1) You are right, the shortcuts in the template SHOULD be instantly
available upon merely loading the template.  In fact, I believe that was the
case a couple of days ago, but then it stopped working yesterday.

2) My PC (XP) has been on and intensively used for the last week.  20
minutes ago, I opened Word and the Office Button wouldn't work!  I performed
an overdue reboot, and now the shortcuts work as you describe below.

3) However, with the newly re-booted and working Word, I have noticed that
NO shortcut keys are shown as assigned in Customize > Keyboard shortcuts. 
Not only don't I see the ctrl-W shortcut (from the template) as assigned to a
macro, the many shortcut keys I had assigned in Word 2003 a) STILL WORK, but
b) are not shown assigned to anything.  Of course, I forget exactly howI
migrated my Word 2003 Normal.dot to Word 2007's Normal.dotm, but I'm guessing
however I did it might be the cause of the working-but-not-shown-as-assigned
shortcuts.  But what about my template's ctrl-W shortcut: shouldn't I be
seeing it as assigned (to the template macro that it successfully invokes)?

I realize this is another problem that you may not wish to respond to, but,
in any case, your insistence that things should work as you describe below
helped me push foward to the reboot/fix.  Thanks!

Al



Tony Jollans said:
In a word: "No"! You seem to be jumping to a lot of conclusions that are,
almost, wholly false.
When you have a template in Word's Startup folder, it will be loaded asa
global template. This means that all the macros in it are available to use,
(but not to edit). You don't have to do anything else to make things work.
If you have a shortcut key assigned, in the template, to a macro in the
template, it should work; if it doesn't, you have something set up wrongly.
My first guess would be that you have the key assignment stored in Normal,
rather than in your global template.

almeck said:
OK, so here's what I've learned:
Putting a template in Word's Startup folder will "load" it as a "Global"
template upon Word opening.  BUT, you have to take steps to use anything
in
it (so far, it's just "available").  There is only(?) one wat to "get" to
stuff that's in a template: You must "attach" the template (via Developer
Document Template > "Attach" and browse to Word's Startup folder to find
it
to attach).  After attaching, any keyboard shortcuts that been assigned in
the template will become active.
If you want to obviate the need to re-attach the template everytime you
open
Word, (after attaching the template and making the template's macros
accessible) you could create keyboard shortcuts that match those in the
template.  These shortcuts will be stored in Normal.dotm (which will be
checked first when a shortcut key is pressed).  Thereafter, upon opening
Word, the keyboard shortcuts you duplicated (now in Normal.dotm) willfire
off the macros in the loaded template (even though you haven't manually
attached it).
:
If you see "[unassigned]" in the dialog box, the Ctrl+W shortcut hasn't
been
properly assigned to the macro.
Also, note that if you are attaching the template to a certain document,
you
don't need to load the template as an add-in.
In fact, attaching and loading are used for different purposes: Whenyou
load a template as an add-in, your goal is to get global access to its
macros, building blocks, and keyboard shortcuts. When you attach a
template,
you want access to those items for a particular document (or a particular
set of documents).
In addition, attaching gives you access to style definitions, assuming
that
you choose "Update document styles" in the Templates and Add-Ins dialog
box.
--
Stefan Blom
Microsoft Word MVP
Thanks for replying, Stefan.
I believe there are no other macros assigned to the key I specified
(ctrl-W)
in the loaded-at-startup template.  As a test, I chose a macro at
random
(in
a blank doc) and tried to assign ctrl-W to it.  I get "currently
assigned
to
[unassigned]", which I take as proff that ctrl-hasn't been assigned to
anything.
My goal is to wake upin a new Word doc, type ctrl-W, and have that
macro
run.  After further investigation, I see that my .dot file is *loaded*,
but
not *attached*.  Once I attach it (via Developer Template), *then*
ctrl-W
works as hoped.
So, I guess now my question is:
1) Given that I've got the .dot file *loaded* upon Word opening,
2) how do/can I cause that template to be *attached* automaticallyupon
Word
opening?
:
This sounds like a conflict of key assignments. The keyboard shortcut
for
your macro could be assigned to something else in the current document
(or
its attached template), in which case the latter will take precedence.
If
you look in the Customize Keyboard dialog box, does that give a clue
to
what
is happening?
--
Stefan Blom
Microsoft Word MVP
I have placed a .dot file template in Word's (2007) Startup folder so
that
the macros it contains will be available whenever I run Word.  My
intent
was
also that the shortcut keys that have been assigned to the macros
(in
the
.dot file that's being loaded at Startup) would also work: they
don't.
The
file, though, is loaded as expected (as can be seen via Developer >
Document
Template).
However, if I remove the template file from Word's Start up folder,
restart
Word, and *manually* load the .dot template (from its "home" in
Trusted
Templates), the shortcut keys *do* work.
Thoughts?-
 
T

Tony Jollans

3) However, with the newly re-booted and working Word, I have noticed that
NO shortcut keys are shown as assigned in Customize > Keyboard shortcuts.

None at all? What do you get when you press Ctrl+Alt+NumPlus, and then
Ctrl+W?

--
Enjoy,
Tony

www.WordArticles.com

almeck said:
Well Tony, I just composed a lengthy reply (thanking you for your comments
below), posted it, and got a "post didn't happen" message.

So, here's a quick summary:

1) You are right, the shortcuts in the template SHOULD be instantly
available upon merely loading the template. In fact, I believe that was
the
case a couple of days ago, but then it stopped working yesterday.

2) My PC (XP) has been on and intensively used for the last week. 20
minutes ago, I opened Word and the Office Button wouldn't work! I
performed
an overdue reboot, and now the shortcuts work as you describe below.

3) However, with the newly re-booted and working Word, I have noticed that
NO shortcut keys are shown as assigned in Customize > Keyboard shortcuts.
Not only don't I see the ctrl-W shortcut (from the template) as assigned
to a
macro, the many shortcut keys I had assigned in Word 2003 a) STILL WORK,
but
b) are not shown assigned to anything. Of course, I forget exactly how I
migrated my Word 2003 Normal.dot to Word 2007's Normal.dotm, but I'm
guessing
however I did it might be the cause of the
working-but-not-shown-as-assigned
shortcuts. But what about my template's ctrl-W shortcut: shouldn't I be
seeing it as assigned (to the template macro that it successfully
invokes)?

I realize this is another problem that you may not wish to respond to,
but,
in any case, your insistence that things should work as you describe below
helped me push foward to the reboot/fix. Thanks!

Al

Tony Jollans said:
In a word: "No"! You seem to be jumping to a lot of conclusions that are,
almost, wholly false.

When you have a template in Word's Startup folder, it will be loaded as a
global template. This means that all the macros in it are available to
use,
(but not to edit). You don't have to do anything else to make things
work.
If you have a shortcut key assigned, in the template, to a macro in the
template, it should work; if it doesn't, you have something set up
wrongly.
My first guess would be that you have the key assignment stored in
Normal,
rather than in your global template.

--
Enjoy,
Tony

www.WordArticles.com

almeck said:
OK, so here's what I've learned:

Putting a template in Word's Startup folder will "load" it as a
"Global"
template upon Word opening. BUT, you have to take steps to use
anything
in
it (so far, it's just "available"). There is only(?) one wat to "get"
to
stuff that's in a template: You must "attach" the template (via
Developer

Document Template > "Attach" and browse to Word's Startup folder to
find
it
to attach). After attaching, any keyboard shortcuts that been assigned
in
the template will become active.

If you want to obviate the need to re-attach the template everytime you
open
Word, (after attaching the template and making the template's macros
accessible) you could create keyboard shortcuts that match those in the
template. These shortcuts will be stored in Normal.dotm (which will be
checked first when a shortcut key is pressed). Thereafter, upon
opening
Word, the keyboard shortcuts you duplicated (now in Normal.dotm) will
fire
off the macros in the loaded template (even though you haven't manually
attached it).

:

If you see "[unassigned]" in the dialog box, the Ctrl+W shortcut
hasn't
been
properly assigned to the macro.

Also, note that if you are attaching the template to a certain
document,
you
don't need to load the template as an add-in.

In fact, attaching and loading are used for different purposes: When
you
load a template as an add-in, your goal is to get global access to its
macros, building blocks, and keyboard shortcuts. When you attach a
template,
you want access to those items for a particular document (or a
particular
set of documents).

In addition, attaching gives you access to style definitions, assuming
that
you choose "Update document styles" in the Templates and Add-Ins
dialog
box.

--
Stefan Blom
Microsoft Word MVP



Thanks for replying, Stefan.

I believe there are no other macros assigned to the key I specified
(ctrl-W)
in the loaded-at-startup template. As a test, I chose a macro at
random
(in
a blank doc) and tried to assign ctrl-W to it. I get "currently
assigned
to
[unassigned]", which I take as proff that ctrl-hasn't been assigned
to
anything.

My goal is to wake upin a new Word doc, type ctrl-W, and have that
macro
run. After further investigation, I see that my .dot file is
*loaded*,
but
not *attached*. Once I attach it (via Developer Template), *then*
ctrl-W
works as hoped.

So, I guess now my question is:

1) Given that I've got the .dot file *loaded* upon Word opening,
2) how do/can I cause that template to be *attached* automatically
upon
Word
opening?



:

This sounds like a conflict of key assignments. The keyboard
shortcut
for
your macro could be assigned to something else in the current
document
(or
its attached template), in which case the latter will take
precedence.
If
you look in the Customize Keyboard dialog box, does that give a
clue
to
what
is happening?

--
Stefan Blom
Microsoft Word MVP



I have placed a .dot file template in Word's (2007) Startup folder
so
that
the macros it contains will be available whenever I run Word. My
intent
was
also that the shortcut keys that have been assigned to the macros
(in
the
.dot file that's being loaded at Startup) would also work: they
don't.
The
file, though, is loaded as expected (as can be seen via Developer

Document
Template).

However, if I remove the template file from Word's Start up
folder,
restart
Word, and *manually* load the .dot template (from its "home" in
Trusted
Templates), the shortcut keys *do* work.

Thoughts?
 
A

almeck

Ctrl+Alt+NumPlus, eh? Cool, never knew about that (called “Customize
Macroâ€, I Googled).

Here are the results I get:

• Ctrl-W: works as expected
• Ctrl+Alt+NumPlus, Ctrl-W: Current keys shows Ctrl-W (as expected) and
Commands shows it’s assigned to my template macro (as expected)
• Office Button > Word Options > Customize > Keyboard Shortcuts >
Category=Macros > select my template macro, Current Keys shows nothing (not
expected)

• Alt-Shift-B (my old insert bullets macro imported from Word 2003): works
as expected
• Ctrl+Alt+NumPlus, Alt-Shift-B: Current Keys shows nothing (not expected),
Commands shows nothing (not expected)
• Office Button > Word Options > Customize > Keyboard Shortcuts >
Category=Macros > select my template macro, Current keys shows nothing (not
expected)

Seems like something’s busted here.


Tony Jollans said:
3) However, with the newly re-booted and working Word, I have noticed that
NO shortcut keys are shown as assigned in Customize > Keyboard shortcuts.

None at all? What do you get when you press Ctrl+Alt+NumPlus, and then
Ctrl+W?

--
Enjoy,
Tony

www.WordArticles.com

almeck said:
Well Tony, I just composed a lengthy reply (thanking you for your comments
below), posted it, and got a "post didn't happen" message.

So, here's a quick summary:

1) You are right, the shortcuts in the template SHOULD be instantly
available upon merely loading the template. In fact, I believe that was
the
case a couple of days ago, but then it stopped working yesterday.

2) My PC (XP) has been on and intensively used for the last week. 20
minutes ago, I opened Word and the Office Button wouldn't work! I
performed
an overdue reboot, and now the shortcuts work as you describe below.

3) However, with the newly re-booted and working Word, I have noticed that
NO shortcut keys are shown as assigned in Customize > Keyboard shortcuts.
Not only don't I see the ctrl-W shortcut (from the template) as assigned
to a
macro, the many shortcut keys I had assigned in Word 2003 a) STILL WORK,
but
b) are not shown assigned to anything. Of course, I forget exactly how I
migrated my Word 2003 Normal.dot to Word 2007's Normal.dotm, but I'm
guessing
however I did it might be the cause of the
working-but-not-shown-as-assigned
shortcuts. But what about my template's ctrl-W shortcut: shouldn't I be
seeing it as assigned (to the template macro that it successfully
invokes)?

I realize this is another problem that you may not wish to respond to,
but,
in any case, your insistence that things should work as you describe below
helped me push foward to the reboot/fix. Thanks!

Al

Tony Jollans said:
In a word: "No"! You seem to be jumping to a lot of conclusions that are,
almost, wholly false.

When you have a template in Word's Startup folder, it will be loaded as a
global template. This means that all the macros in it are available to
use,
(but not to edit). You don't have to do anything else to make things
work.
If you have a shortcut key assigned, in the template, to a macro in the
template, it should work; if it doesn't, you have something set up
wrongly.
My first guess would be that you have the key assignment stored in
Normal,
rather than in your global template.

--
Enjoy,
Tony

www.WordArticles.com

OK, so here's what I've learned:

Putting a template in Word's Startup folder will "load" it as a
"Global"
template upon Word opening. BUT, you have to take steps to use
anything
in
it (so far, it's just "available"). There is only(?) one wat to "get"
to
stuff that's in a template: You must "attach" the template (via
Developer

Document Template > "Attach" and browse to Word's Startup folder to
find
it
to attach). After attaching, any keyboard shortcuts that been assigned
in
the template will become active.

If you want to obviate the need to re-attach the template everytime you
open
Word, (after attaching the template and making the template's macros
accessible) you could create keyboard shortcuts that match those in the
template. These shortcuts will be stored in Normal.dotm (which will be
checked first when a shortcut key is pressed). Thereafter, upon
opening
Word, the keyboard shortcuts you duplicated (now in Normal.dotm) will
fire
off the macros in the loaded template (even though you haven't manually
attached it).

:

If you see "[unassigned]" in the dialog box, the Ctrl+W shortcut
hasn't
been
properly assigned to the macro.

Also, note that if you are attaching the template to a certain
document,
you
don't need to load the template as an add-in.

In fact, attaching and loading are used for different purposes: When
you
load a template as an add-in, your goal is to get global access to its
macros, building blocks, and keyboard shortcuts. When you attach a
template,
you want access to those items for a particular document (or a
particular
set of documents).

In addition, attaching gives you access to style definitions, assuming
that
you choose "Update document styles" in the Templates and Add-Ins
dialog
box.

--
Stefan Blom
Microsoft Word MVP



Thanks for replying, Stefan.

I believe there are no other macros assigned to the key I specified
(ctrl-W)
in the loaded-at-startup template. As a test, I chose a macro at
random
(in
a blank doc) and tried to assign ctrl-W to it. I get "currently
assigned
to
[unassigned]", which I take as proff that ctrl-hasn't been assigned
to
anything.

My goal is to wake upin a new Word doc, type ctrl-W, and have that
macro
run. After further investigation, I see that my .dot file is
*loaded*,
but
not *attached*. Once I attach it (via Developer Template), *then*
ctrl-W
works as hoped.

So, I guess now my question is:

1) Given that I've got the .dot file *loaded* upon Word opening,
2) how do/can I cause that template to be *attached* automatically
upon
Word
opening?



:

This sounds like a conflict of key assignments. The keyboard
shortcut
for
your macro could be assigned to something else in the current
document
(or
its attached template), in which case the latter will take
precedence.
If
you look in the Customize Keyboard dialog box, does that give a
clue
to
what
is happening?

--
Stefan Blom
Microsoft Word MVP



I have placed a .dot file template in Word's (2007) Startup folder
so
that
the macros it contains will be available whenever I run Word. My
intent
was
also that the shortcut keys that have been assigned to the macros
(in
the
.dot file that's being loaded at Startup) would also work: they
don't.
The
file, though, is loaded as expected (as can be seen via Developer

Document
Template).

However, if I remove the template file from Word's Start up
folder,
restart
Word, and *manually* load the .dot template (from its "home" in
Trusted
Templates), the shortcut keys *do* work.

Thoughts?
 
T

Tony Jollans

• Alt-Shift-B (my old insert bullets macro imported from Word 2003): works
as expected
• Ctrl+Alt+NumPlus, Alt-Shift-B: Current Keys shows nothing (not
expected),

How have you imported it? I can't duplicate this aspect of what you say. As
for the rest ...
Seems like something’s busted here.

Yup!

Not much more to say!

--
Enjoy,
Tony

www.WordArticles.com

almeck said:
Ctrl+Alt+NumPlus, eh? Cool, never knew about that (called “Customize
Macroâ€, I Googled).

Here are the results I get:

• Ctrl-W: works as expected
• Ctrl+Alt+NumPlus, Ctrl-W: Current keys shows Ctrl-W (as expected) and
Commands shows it’s assigned to my template macro (as expected)
• Office Button > Word Options > Customize > Keyboard Shortcuts >
Category=Macros > select my template macro, Current Keys shows nothing
(not
expected)

• Alt-Shift-B (my old insert bullets macro imported from Word 2003): works
as expected
• Ctrl+Alt+NumPlus, Alt-Shift-B: Current Keys shows nothing (not
expected),
Commands shows nothing (not expected)
• Office Button > Word Options > Customize > Keyboard Shortcuts >
Category=Macros > select my template macro, Current keys shows nothing
(not
expected)

Seems like something’s busted here.


Tony Jollans said:
3) However, with the newly re-booted and working Word, I have noticed
that
NO shortcut keys are shown as assigned in Customize > Keyboard
shortcuts.

None at all? What do you get when you press Ctrl+Alt+NumPlus, and then
Ctrl+W?

--
Enjoy,
Tony

www.WordArticles.com

almeck said:
Well Tony, I just composed a lengthy reply (thanking you for your
comments
below), posted it, and got a "post didn't happen" message.

So, here's a quick summary:

1) You are right, the shortcuts in the template SHOULD be instantly
available upon merely loading the template. In fact, I believe that
was
the
case a couple of days ago, but then it stopped working yesterday.

2) My PC (XP) has been on and intensively used for the last week. 20
minutes ago, I opened Word and the Office Button wouldn't work! I
performed
an overdue reboot, and now the shortcuts work as you describe below.

3) However, with the newly re-booted and working Word, I have noticed
that
NO shortcut keys are shown as assigned in Customize > Keyboard
shortcuts.
Not only don't I see the ctrl-W shortcut (from the template) as
assigned
to a
macro, the many shortcut keys I had assigned in Word 2003 a) STILL
WORK,
but
b) are not shown assigned to anything. Of course, I forget exactly how
I
migrated my Word 2003 Normal.dot to Word 2007's Normal.dotm, but I'm
guessing
however I did it might be the cause of the
working-but-not-shown-as-assigned
shortcuts. But what about my template's ctrl-W shortcut: shouldn't I
be
seeing it as assigned (to the template macro that it successfully
invokes)?

I realize this is another problem that you may not wish to respond to,
but,
in any case, your insistence that things should work as you describe
below
helped me push foward to the reboot/fix. Thanks!

Al

:

In a word: "No"! You seem to be jumping to a lot of conclusions that
are,
almost, wholly false.

When you have a template in Word's Startup folder, it will be loaded
as a
global template. This means that all the macros in it are available to
use,
(but not to edit). You don't have to do anything else to make things
work.
If you have a shortcut key assigned, in the template, to a macro in
the
template, it should work; if it doesn't, you have something set up
wrongly.
My first guess would be that you have the key assignment stored in
Normal,
rather than in your global template.

--
Enjoy,
Tony

www.WordArticles.com

OK, so here's what I've learned:

Putting a template in Word's Startup folder will "load" it as a
"Global"
template upon Word opening. BUT, you have to take steps to use
anything
in
it (so far, it's just "available"). There is only(?) one wat to
"get"
to
stuff that's in a template: You must "attach" the template (via
Developer

Document Template > "Attach" and browse to Word's Startup folder to
find
it
to attach). After attaching, any keyboard shortcuts that been
assigned
in
the template will become active.

If you want to obviate the need to re-attach the template everytime
you
open
Word, (after attaching the template and making the template's macros
accessible) you could create keyboard shortcuts that match those in
the
template. These shortcuts will be stored in Normal.dotm (which will
be
checked first when a shortcut key is pressed). Thereafter, upon
opening
Word, the keyboard shortcuts you duplicated (now in Normal.dotm)
will
fire
off the macros in the loaded template (even though you haven't
manually
attached it).

:

If you see "[unassigned]" in the dialog box, the Ctrl+W shortcut
hasn't
been
properly assigned to the macro.

Also, note that if you are attaching the template to a certain
document,
you
don't need to load the template as an add-in.

In fact, attaching and loading are used for different purposes:
When
you
load a template as an add-in, your goal is to get global access to
its
macros, building blocks, and keyboard shortcuts. When you attach a
template,
you want access to those items for a particular document (or a
particular
set of documents).

In addition, attaching gives you access to style definitions,
assuming
that
you choose "Update document styles" in the Templates and Add-Ins
dialog
box.

--
Stefan Blom
Microsoft Word MVP



Thanks for replying, Stefan.

I believe there are no other macros assigned to the key I
specified
(ctrl-W)
in the loaded-at-startup template. As a test, I chose a macro at
random
(in
a blank doc) and tried to assign ctrl-W to it. I get "currently
assigned
to
[unassigned]", which I take as proff that ctrl-hasn't been
assigned
to
anything.

My goal is to wake upin a new Word doc, type ctrl-W, and have
that
macro
run. After further investigation, I see that my .dot file is
*loaded*,
but
not *attached*. Once I attach it (via Developer Template),
*then*
ctrl-W
works as hoped.

So, I guess now my question is:

1) Given that I've got the .dot file *loaded* upon Word opening,
2) how do/can I cause that template to be *attached*
automatically
upon
Word
opening?



:

This sounds like a conflict of key assignments. The keyboard
shortcut
for
your macro could be assigned to something else in the current
document
(or
its attached template), in which case the latter will take
precedence.
If
you look in the Customize Keyboard dialog box, does that give a
clue
to
what
is happening?

--
Stefan Blom
Microsoft Word MVP



I have placed a .dot file template in Word's (2007) Startup
folder
so
that
the macros it contains will be available whenever I run Word.
My
intent
was
also that the shortcut keys that have been assigned to the
macros
(in
the
.dot file that's being loaded at Startup) would also work:
they
don't.
The
file, though, is loaded as expected (as can be seen via
Developer

Document
Template).

However, if I remove the template file from Word's Start up
folder,
restart
Word, and *manually* load the .dot template (from its "home"
in
Trusted
Templates), the shortcut keys *do* work.

Thoughts?
 

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