OPENING Template doesn't work like FILE | NEW does?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I click on FILE | OPEN, and browse to Templates folder. Then double-click on
*.dot file. It opens the Word document WITHOUT activating the "Form Entry"
screen. I click on FILE | NEW and choose the same *.dot file from the link
on the right and it opens the "Form Entry" screen without a problem. What's
the difference? Can I do something to enable it with FILE | OPEN?
 
You can, but you shouldn't. If you use File-Open, you'll have to save the
template to a new name. Generally, you don't WANT the form to appear on
File-->Open. However, if you're absolutely sure you do, then:

1. Hit Alt+F11 to open the visual basic editor.
2. On the left, below Project (Your template's name), you need to open
ThisDocument. In it, you'll likely see code called "Private Sub Document_New
()". Copy it.
3. Paste it below itself. Change the name to the second one to be "Private
Sub Document_Open()"
4. Hit the SAVE diskette. Close the doc.
5. Reopen to test.
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com
 
Charles said:
I click on FILE | OPEN, and browse to Templates folder. Then
double-click on *.dot file. It opens the Word document WITHOUT
activating the "Form Entry" screen. I click on FILE | NEW and choose
the same *.dot file from the link on the right and it opens the "Form
Entry" screen without a problem. What's the difference? Can I do
something to enable it with FILE | OPEN?

You don't say (and you may not know), but I suspect that what you're calling
the "Form Entry" screen is actually a userform -- a custom dialog box that
was built in the macro editor. To get a userform to appear, another macro is
required. If that macro was named AutoNew, then it will run only when you
use File > New. To get it to appear when you open a document based on the
template, you'd need another macro named AutoOpen.

BUT...

You should *not* be using File > Open to open a template unless you intend
to edit the template itself -- that is, if you are the author of the
template and you intend to change the way it creates new documents. When
templates are in use, as opposed to when they're being designed or modified,
they should be used *only* with File > New.

Generally, when you're designing or modifying a template, you don't want the
userform popping up in your face except when you're testing the userform
itself. Then it's easier to display it by manually running the Auto macro
than to close and reopen the template.
 
Back
Top