Re: Opening Word Template with Macros

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The article you reference also shows the method to create new documents
based on your own custom template. I suggest that you explore this. Build
your customizations into your template in advance, not a part of your code.

Again, you do not want to be opening a template. You want to be using the
documents.add method referencing your template instead.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

"Marco Mendonça" <Marco Mendonça@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7BC4BD84-4F39-4835-BCC0-19066E018D18@xxxxxxxxxxxxxxxx
> Yes, i'm hiding and creating toolbars and menus.
> The reason why i'm opening the template is the following: i'm launching
> word
> from a .NET application; i need to create new documents in a "customized"
> word environment (that's why i'm using macros). To acomplish this, i've
> followed instructions from microsoft:
> http://msdn2.microsoft.com/library/hhf98b5c(en-us,vs.80).aspx
>
> Is this not correct?
>
> "Charles Kenyon" wrote:
>
>> Well, your code _is_ making some changes. Are you doing anything with
>> toolbars or menus?
>>
>> Why are you opening the template rather than creating documents from it?
>> The
>> proper way to use templates is usually to create new documents based on
>> the
>> template.
>>
>> --
>> Charles Kenyon
>>
>> Word New User FAQ & Web Directory: http://addbalance.com/word
>>
>> Intermediate User's Guide to Microsoft Word (supplemented version of
>> Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
>>
>> See also the MVP FAQ: http://www.mvps.org/word which is awesome!
>> --------- --------- --------- --------- --------- ---------
>> This message is posted to a newsgroup. Please post replies
>> and questions to the newsgroup so that others can learn
>> from my ignorance and your wisdom.
>>
>>
>> "Marco Mendonça" <Marco Mendonça@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
>> message
>> news:51CB161D-7A5D-4324-B55C-CFA090FBE054@xxxxxxxxxxxxxxxx
>> > I've made a template which runs some macros automatically when it's
>> > opened.
>> > So, when i open the template, the macros work fine. The problem is when
>> > i
>> > try to close the template: it asks me if i want to save the changes,
>> > but i
>> > haven't made any changes.
>> > How can i solve this problem?
>>
>>
>>


.



Relevant Pages

  • Re: normal.dot
    ... disable it,it's also showed as disabled items in word ... >Intermediate User's Guide to Microsoft Word ... >This message is posted to a newsgroup. ... >>>> normal template" on tool,options,save tab in word. ...
    (microsoft.public.word.docmanagement)
  • Re: How do I set up a form to catalogue CDs?
    ... Word New User FAQ & Web Directory: http://addbalance.com/word ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ... there is already a form or template I can use. ...
    (microsoft.public.word.docmanagement)
  • Re: How do I set up automatic numbering?
    ... the template itself being different for each department. ... Word New User FAQ & Web Directory: http://addbalance.com/word ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ...
    (microsoft.public.word.docmanagement)
  • Re: Templates
    ... Word New User FAQ & Web Directory: http://addbalance.com/word ... Intermediate User's Guide to Microsoft Word (supplemented version of ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... > have a template made from the forms text field. ...
    (microsoft.public.word.pagelayout)
  • Re: Can I create a new document with a hyperlink using template?
    ... Intermediate User's Guide to Microsoft Word (supplemented version of ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... I can make the hyperlink point to the Form Template, ... > the Template instead of opening a new word document using the template. ...
    (microsoft.public.word.docmanagement)