Auto open macro for embedded Word doc.

P

pukya78

Hi,
I have a Word document which is embedded in some application. I used
the Document_Open macro which would automatically get executed when the
doc. is opened. It works fine if the word doc. is directly opened. But
when I open the embedded Word doc., this macro does not get executed.
Do I need to do something more?

Code:
Sub Document_Open()
MsgBox "opened"
End Sub
 
J

Jean-Guy Marcil

(e-mail address removed) was telling us:
(e-mail address removed) nous racontait que :
Hi,
I have a Word document which is embedded in some application. I used
the Document_Open macro which would automatically get executed when
the doc. is opened. It works fine if the word doc. is directly
opened. But when I open the embedded Word doc., this macro does not
get executed. Do I need to do something more?

Code:
Sub Document_Open()
MsgBox "opened"
End Sub

Please, do not multi-post.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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