Re: Opening Word Template with Macros
- From: "Charles Kenyon" <msnewsgroup@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Apr 2005 07:26:55 -0500
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?
>>
>>
>>
.
- Follow-Ups:
- Re: Opening Word Template with Macros
- From: Marco Mendonça
- Re: Opening Word Template with Macros
- References:
- Opening Word Template with Macros
- From: Marco Mendonça
- Re: Opening Word Template with Macros
- From: Charles Kenyon
- Re: Opening Word Template with Macros
- From: Marco Mendonça
- Opening Word Template with Macros
- Prev by Date: Re: Opening Word Template with Macros
- Next by Date: Re: Opening Word Template with Macros
- Previous by thread: Re: Opening Word Template with Macros
- Next by thread: Re: Opening Word Template with Macros
- Index(es):
Relevant Pages
|