Word Interop Question

DocNsane

Limp Gawd
Joined
Aug 9, 2001
Messages
216
In excell we have the property

Excel.Application.Interactive
Which locks the program so the user doesn't mess with the forms as it's doing its processing.

I couldn't find the same property in
Word.Application, or anywhere in its object tree.

Does Word's interop not have that property? How can I lock word to prevent the user from messing with the document as it's processing?

These are the office 2003 + .net 1.1 libraries.
 
Try Application.ScreenUpdating = False and then reset it with Application.ScreenUpdating = True

Don't forget to reset it, or there's a good chance you'll end up with a frozen Word screen until you run the code again.

That works in Word and excel, probably all the other office apps.
 
Oh, I think I misunderstood. Yes if the application is ever supposed to be used by the user then the ScreenUpdating property is probably good. If you were just using word to do something but never wanted the user to interact with it, then Visible would be good.
 
Back
Top