How many Sub AutoOpen() can you have in one document

D

Dave Neve

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
 
J

Jay Freedman

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.
 
D

Dave Neve

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top