Programming in WORD Doc

P

PP

Hi Al

Can somebody tell me, how can I start programming on a WORD DOC
Where can I find the Object Model

I opened a WORD DOc, went to Tools -> Macros -> VB Editor
I wrote a small code on it, it never gets executed

Private Sub Document_Open(
MsgBox ("XXX"
End Su

Private Sub Document_New(
MsgBox ("YYY"
End Su
 
P

PP

My MACROS security was set to HIGH, so was the reason it never executed the code
Changing that, make the code run :-

Thanks for the information all, I'm browsing thru your site, to see if I can get more from there.
 

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