Reply
 
Thread Tools Display Modes
  #1   Report Post  
Charles Rodriguez
 
Posts: n/a
Default OPENING Template doesn't work like FILE | NEW does?

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?
  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

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 Rodriguez" Charles wrote in
message ...
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?



  #3   Report Post  
Jay Freedman
 
Posts: n/a
Default

Charles Rodriguez wrote:
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.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to creat relative and shorthand file path names? 2dogs Microsoft Word Help 1 May 15th 05 12:11 PM
Opening a word 9 file with Word 2003 ningbo Microsoft Word Help 1 May 8th 05 07:51 PM
Moving templates to other computer GeorgeMar Microsoft Word Help 10 February 19th 05 04:59 AM
File created from template blown in size Charles Microsoft Word Help 2 November 29th 04 02:47 PM
Template link prevents word doc from opening Scrich Microsoft Word Help 2 November 24th 04 03:40 PM


All times are GMT +1. The time now is 04:35 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"