this macro issupposed to automatically display the AutoText menu when a
document is created from a template:

Sub AutoOpen()
CommandBars("AutoText").Visible = True
End Sub

When I create a new document from the template, and tell Word to enable
macros, a new document opens but the autotext menu does not display. Why?

RE: AutoOpen macro doesn't run by JeanGuyMarcil

JeanGuyMarcil
Tue May 13 09:41:01 PDT 2008

"Bob W" wrote:

> this macro issupposed to automatically display the AutoText menu when a
> document is created from a template:
>
> Sub AutoOpen()
> CommandBars("AutoText").Visible = True
> End Sub
>
> When I create a new document from the template, and tell Word to enable
> macros, a new document opens but the autotext menu does not display. Why?

AutoOpen works when you *Open* a document or template. When creating
docments from templates, you need *AutoNew* (You cannot "open" somehting that
does not exists...).

RE: AutoOpen macro doesn't run by BobW

BobW
Tue May 13 09:56:01 PDT 2008

Thank you Jean-Guy - that fixed it!

"Jean-Guy Marcil" wrote:

> "Bob W" wrote:
>
> > this macro issupposed to automatically display the AutoText menu when a
> > document is created from a template:
> >
> > Sub AutoOpen()
> > CommandBars("AutoText").Visible = True
> > End Sub
> >
> > When I create a new document from the template, and tell Word to enable
> > macros, a new document opens but the autotext menu does not display. Why?
>
> AutoOpen works when you *Open* a document or template. When creating
> docments from templates, you need *AutoNew* (You cannot "open" somehting that
> does not exists...).

RE: AutoOpen macro doesn't run by fumei

fumei
Tue May 13 09:56:20 PDT 2008

Or Document_New.

Jean-Guy Marcil wrote:
>> this macro issupposed to automatically display the AutoText menu when a
>> document is created from a template:
>[quoted text clipped - 5 lines]
>> When I create a new document from the template, and tell Word to enable
>> macros, a new document opens but the autotext menu does not display. Why?
>
>AutoOpen works when you *Open* a document or template. When creating
>docments from templates, you need *AutoNew* (You cannot "open" somehting that
>does not exists...).

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200805/1