I have a code in Document_Open, but it does not run the code. I use debug and set break point and realized that code even not fired. Are there any places need configure to triggle the code? Your help is great appreciated,
Which version of Word do you use ? You have to check if the security level is as low as code can run. Document_Open will only run when you open the document containing the code. If you place it in the normal.dot, you code will run for all the document. -- Heureux-oli http://heureuxoli.developpez.com/ ---------------------------------------------------------------------------------- "Souris" a écrit dans le message de news: 3C31C0C5-B289-40E8-8B56-BF950F2A6320@microsoft.com... >I have a code in Document_Open, but it does not run the code. > I use debug and set break point and realized that code even not fired. > > Are there any places need configure to triggle the code? > > > Your help is great appreciated, >
Thanks for the message, Does the code run if user open the document using MS Word Viewer? I use version 2003. Thanks again, "heureux-oli" wrote: > Which version of Word do you use ? > You have to check if the security level is as low as code can run. > > Document_Open will only run when you open the document containing the code. > If you place it in the normal.dot, you code will run for all the document. > > -- > Heureux-oli > http://heureuxoli.developpez.com/ > > ---------------------------------------------------------------------------------- > > "Souris" a écrit dans le message de news: > 3C31C0C5-B289-40E8-8B56-BF950F2A6320@microsoft.com... > >I have a code in Document_Open, but it does not run the code. > > I use debug and set break point and realized that code even not fired. > > > > Are there any places need configure to triggle the code? > > > > > > Your help is great appreciated, > > > > >
Sorry, But I never tried. -- Heureux-oli http://heureuxoli.developpez.com/ ---------------------------------------------------------------------------------- "Souris" a écrit dans le message de news: 96329087-EF54-4930-95C2-7C4BA4D69417@microsoft.com... > Thanks for the message, > Does the code run if user open the document using MS Word Viewer? > > I use version 2003. > > Thanks again, > > > "heureux-oli" wrote: > >> Which version of Word do you use ? >> You have to check if the security level is as low as code can run. >> >> Document_Open will only run when you open the document containing the >> code. >> If you place it in the normal.dot, you code will run for all the >> document. >> >> -- >> Heureux-oli >> http://heureuxoli.developpez.com/ >> >> ---------------------------------------------------------------------------------- >> >> "Souris" a écrit dans le message de >> news: >> 3C31C0C5-B289-40E8-8B56-BF950F2A6320@microsoft.com... >> >I have a code in Document_Open, but it does not run the code. >> > I use debug and set break point and realized that code even not fired. >> > >> > Are there any places need configure to triggle the code? >> > >> > >> > Your help is great appreciated, >> > >> >> >>
"Souris" wrote in message news:96329087-EF54-4930-95C2-7C4BA4D69417@microsoft.com... > Thanks for the message, > Does the code run if user open the document using MS Word Viewer? > > I use version 2003. > No. Macros do not run at all if the document is opened using Word viewer. -- Regards Jonathan West - Word MVP www.intelligentdocuments.co.uk Please reply to the newsgroup
Thanks for the iformation, "Jonathan West" wrote: > > "Souris" wrote in message > news:96329087-EF54-4930-95C2-7C4BA4D69417@microsoft.com... > > Thanks for the message, > > Does the code run if user open the document using MS Word Viewer? > > > > I use version 2003. > > > > No. Macros do not run at all if the document is opened using Word viewer. > > > -- > Regards > Jonathan West - Word MVP > www.intelligentdocuments.co.uk > Please reply to the newsgroup > > >