more information ....

J

Joe

Sorry but I should have said that I want to run the VB.NET application with
Option Explicit turned ON.

(I can get it to work with Option Explicit OFF using:
oWordApp.WordBasic.DisableAutoMacros(1)

where oWordApp is of type Word.ApplicationClass )

I think I need to do something like:
oWordApp.WordBasic.GetType().InvokeMember _
("DisableAutoMacros",Reflection.BindingFlags.InvokeMethod , _
Nothing, oWordApp.WordBasic, Nothing)
.... but can't get it to work.
 
W

Word Heretic

G'day Joe <[email protected]>,

Huh? Declare all your variables...

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Joe reckoned:
 

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