AutoOpen macro doesn't run

B

Bob W

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?
 
J

Jean-Guy Marcil

Bob W said:
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...).
 
B

Bob W

Thank you Jean-Guy - that fixed it!

Jean-Guy Marcil said:
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...).
 
F

fumei via OfficeKB.com

Or Document_New.

Jean-Guy Marcil said:
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...).
 

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