Word 2003 Autoexec macro does no run when using Word 2003 as Outlo

P

Pugh

Hi,



I am using Word 2003 to develop a global template (.dot) file.

This global template restricts menus and toolbars to a certain set of
desired menus and toolbars and protects the document so users can't modify
Styles.

Users can only use the styles available in this template.

The global template is added as an Add In to the document and Normal.dot is
the attached template.

The global template relies on Normal.dot being present to ensure a known
starting point can be achieved before the restrictions are applied by the
global template.



When we open a word document, which has been enabled for this global
template, the document itself has a macro in its Document_Open method which
unloads all other templates and add ins, and then loads the global template.

The global template has an AutoExec function which in turn applies the
desired restrictions when the document is opened.



Our problem is that Many of our users are using Outlook 2003 with Word 2003
as their email editor.

According to Knowledgebase article 209978 -
http://support.microsoft.com/default.aspx/kb/209978, when you use Word as
your email editor in Outlook, the AutoExec macro does not run.



This means that if a user opens Outlook before they open their Word
documents, (which most users do), the global template which is supposed to
apply restrictions to the document does not work because its AutoExec macro
does not run.



A second problem is that Outlook uses a different attached template,
(email.dot) when it uses Word as it email editor and that alters up our
document's list of available styles, so our template's style restrictions are
affected.



Is there a way to get around these issues when using Word as your email
editor in Outlook?



Can we somehow make our AutoExec macro run when we open a Word document
which is setup to use our global template?



thanks



pugh.3
 
E

Emiel Nijhuis

Hi,

I encountered the same problem. Microsoft also acknowledged this problem:
http://support.microsoft.com/kb/209978

The only way around this is to use startup command line switches:
http://support.microsoft.com/kb/210565
You may want to look at [path]winword.exe /a

However, There are two drawbacks:
1. All the shortcuts to winword.exe on the user's system will have to be altered. Alternative is to create your own winword.exe that calls Word (in a different location) with the desired startup parameters(s).
2. Every time Word is called using switches a new instance of Word is created instead of Word using the current instance. This means 20 Mb of space every time Word is not opened from within the current instance.
Hope this helps.

Emiel



Pug wrote:

Word 2003 Autoexec macro does no run when using Word 2003 as Outlo
10-dec-08

Hi



I am using Word 2003 to develop a global template (.dot) file

This global template restricts menus and toolbars to a certain set of
desired menus and toolbars and protects the document so users can't modify
Styles

Users can only use the styles available in this template

The global template is added as an Add In to the document and Normal.dot is
the attached template

The global template relies on Normal.dot being present to ensure a known
starting point can be achieved before the restrictions are applied by the
global template



When we open a word document, which has been enabled for this global
template, the document itself has a macro in its Document_Open method which
unloads all other templates and add ins, and then loads the global template

The global template has an AutoExec function which in turn applies the
desired restrictions when the document is opened



Our problem is that Many of our users are using Outlook 2003 with Word 2003
as their email editor

According to Knowledgebase article 209978 -
http://support.microsoft.com/default.aspx/kb/209978, when you use Word as
your email editor in Outlook, the AutoExec macro does not run



This means that if a user opens Outlook before they open their Word
documents, (which most users do), the global template which is supposed to
apply restrictions to the document does not work because its AutoExec macro
does not run



A second problem is that Outlook uses a different attached template,
(email.dot) when it uses Word as it email editor and that alters up our
document's list of available styles, so our template's style restrictions are
affected



Is there a way to get around these issues when using Word as your email
editor in Outlook



Can we somehow make our AutoExec macro run when we open a Word document
which is setup to use our global template



thank



pugh.3

Previous Posts In This Thread:

On woensdag 10 december 2008 17:32
Pug wrote:

Word 2003 Autoexec macro does no run when using Word 2003 as Outlo
Hi



I am using Word 2003 to develop a global template (.dot) file

This global template restricts menus and toolbars to a certain set of
desired menus and toolbars and protects the document so users can't modify
Styles

Users can only use the styles available in this template

The global template is added as an Add In to the document and Normal.dot is
the attached template

The global template relies on Normal.dot being present to ensure a known
starting point can be achieved before the restrictions are applied by the
global template



When we open a word document, which has been enabled for this global
template, the document itself has a macro in its Document_Open method which
unloads all other templates and add ins, and then loads the global template

The global template has an AutoExec function which in turn applies the
desired restrictions when the document is opened



Our problem is that Many of our users are using Outlook 2003 with Word 2003
as their email editor

According to Knowledgebase article 209978 -
http://support.microsoft.com/default.aspx/kb/209978, when you use Word as
your email editor in Outlook, the AutoExec macro does not run



This means that if a user opens Outlook before they open their Word
documents, (which most users do), the global template which is supposed to
apply restrictions to the document does not work because its AutoExec macro
does not run.



A second problem is that Outlook uses a different attached template,
(email.dot) when it uses Word as it email editor and that alters up our
document's list of available styles, so our template's style restrictions are
affected.



Is there a way to get around these issues when using Word as your email
editor in Outlook?



Can we somehow make our AutoExec macro run when we open a Word document
which is setup to use our global template?



thanks



pugh.3

EggHeadCafe - Software Developer Portal of Choice
Realtime Stock Quote Tray Icon Balloon Tip App
http://www.eggheadcafe.com/tutorial...9-5edfb474aad4/realtime-stock-quote-tray.aspx
 

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