(Edited by jscher2000 on 15-Jul-04 21:21. Changed subject to something more descriptive.)
Hi
when opening documents via automation I occasionally get one that has a dialog form that is opened. This kills me dead.
The opening of a dialog in word can only be achieved by VBA? As such I though I’d just change the security level for word when creating the word application. Then I discovered that there is no programmatic access to the Macro Security level, makes sense when you think about it .
So now I’m wondering if there is any way to open a document and prevent macros running
I’m doing something like this
Set appWord = CreateObject("Word.Application") appWord.Visible = True appWord.WindowState = wdWindowStateMinimize End If With appWord .Documents.Open FileResults(fileNo, 1)
can I prevent macros in the document that I am opening from running?
Thanks
Stewart