Hi

If I want to have more than one thing to happen automatically when I open a
document, how to I do this.

I already have a 'sub AutoOpen' macro and I wanted to add a second one but
their is an 'ambiguity of name window'

Thanks in advance

Re: How many Sub AutoOpen() can you have in one document by Jay

Jay
Sun Oct 17 13:09:12 CDT 2004

Hi Dave,

You can only have one AutoOpen per template or document. You can
either combine the code of the two macros into one big one, or call
one or more other macros from inside the existing AutoOpen.

--
Regards,
Jay Freedman http://aspnet2.com/mvp.ashx?JayFreedman
Microsoft Word MVP FAQ: http://word.mvps.org

"Dave Neve" <NoAdressForSpammers@Nofs.fr> wrote:

>Hi
>
>If I want to have more than one thing to happen automatically when I open a
>document, how to I do this.
>
>I already have a 'sub AutoOpen' macro and I wanted to add a second one but
>their is an 'ambiguity of name window'
>
>Thanks in advance
>


Re: How many Sub AutoOpen() can you have in one document by Dave

Dave
Sun Oct 17 14:23:42 CDT 2004

Hi

Thought I understood but it doesn't work.

If I put the macro in .Normal ,ererything is ok.

But I have other .dot docs and if I put it in one of them, it doesn't
execute.

Finally , if I create a doc, add the macro and put it into the Word/StartUp
folder, nothing happens.

I feel that there is still sth I haven't grasped about the relationship
between .Normal and .dot

Can you help?


"Jay Freedman" <jay.freedman@verizon.net> a écrit dans le message de news:
f7d5n0tllpii5uq4ikt2jr5t6vuli3nlh0@4ax.com...
> Hi Dave,
>
> You can only have one AutoOpen per template or document. You can
> either combine the code of the two macros into one big one, or call
> one or more other macros from inside the existing AutoOpen.
>
> --
> Regards,
> Jay Freedman http://aspnet2.com/mvp.ashx?JayFreedman
> Microsoft Word MVP FAQ: http://word.mvps.org
>
> "Dave Neve" <NoAdressForSpammers@Nofs.fr> wrote:
>
>>Hi
>>
>>If I want to have more than one thing to happen automatically when I open
>>a
>>document, how to I do this.
>>
>>I already have a 'sub AutoOpen' macro and I wanted to add a second one but
>>their is an 'ambiguity of name window'
>>
>>Thanks in advance
>>
>