M
MikeB77
My 'self-saving' global template works fine when it remains open (as .dot)
but crashes Word when I close it and try to run ANY macro. Feeling very stuck
here- help please!
The Goal: I want to have a single document that 'carries' various macros
between various PCs, so I don't have to 'organize' them into normal.dot on
many machines. I can't get word to run macros contained in a non-active
document (is it possible?) and don't want to mess with normal.dot nor
manually save templates or set references.
My attempt: So I've made "myTemplate.doc" that saves itself as
"myTemplate.dot" in the wdUserTemplatesPath folder (after first removing &
deleting any old instances of itself from that folder). The plan is it then
builds a menu to access its various macros...
Progress: this all works fine when (1) I record or run the 'install' macro
in normal.dot OR (2) when I run the 'install' macro from myTemplate.doc/dot
AND myTemplate.dot remains OPEN. BUT if I close myTemplate.dot (after
install) then Word crashes when I press alt-F8, even tho it shows myTemplate
as a currently loaded global template. I've tried it with Word 2003 and 2007.
I've tried unsuccessfully setting the customization context to normal.dot
prior to saving as .dot. I'm avoiding the template startup folder as I don't
want to restart Word to use the macros and I want them all to be tidy and go
away when not in use. I'd rather not need Word security settings to allow VBE
project object changes.
Any help with this GREATLY appreciated, including better ideas on how to
achieve the original goal
Thanks, MikeB77
but crashes Word when I close it and try to run ANY macro. Feeling very stuck
here- help please!
The Goal: I want to have a single document that 'carries' various macros
between various PCs, so I don't have to 'organize' them into normal.dot on
many machines. I can't get word to run macros contained in a non-active
document (is it possible?) and don't want to mess with normal.dot nor
manually save templates or set references.
My attempt: So I've made "myTemplate.doc" that saves itself as
"myTemplate.dot" in the wdUserTemplatesPath folder (after first removing &
deleting any old instances of itself from that folder). The plan is it then
builds a menu to access its various macros...
Progress: this all works fine when (1) I record or run the 'install' macro
in normal.dot OR (2) when I run the 'install' macro from myTemplate.doc/dot
AND myTemplate.dot remains OPEN. BUT if I close myTemplate.dot (after
install) then Word crashes when I press alt-F8, even tho it shows myTemplate
as a currently loaded global template. I've tried it with Word 2003 and 2007.
I've tried unsuccessfully setting the customization context to normal.dot
prior to saving as .dot. I'm avoiding the template startup folder as I don't
want to restart Word to use the macros and I want them all to be tidy and go
away when not in use. I'd rather not need Word security settings to allow VBE
project object changes.
Any help with this GREATLY appreciated, including better ideas on how to
achieve the original goal
Thanks, MikeB77