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.
Word Heretic - 29 Jan 2005 02:42 GMT
G'day Joe <Joe@discussions.microsoft.com>,
Huh? Declare all your variables...
Steve Hudson - Word Heretic
steve from wordheretic.com (Email replies require payment)
Without prejudice
Joe reckoned:
>Sorry but I should have said that I want to run the VB.NET application with
>Option Explicit turned ON.
[quoted text clipped - 9 lines]
> Nothing, oWordApp.WordBasic, Nothing)
>... but can't get it to work.