My name is Ziv. I am trying to write a simple VB macro for Word, for command-line printing. I want Word to open without an error message-box, no matter what.
I wrote:
Application.DisplayAlerts = wdAlertsNone
But I still get pop-up windows for:
- The document 'temp.doc' caused a serious error the last time it was opened. Would you like to continue opening it?
- Word failed to start correctly last time. Starting Word in safe mode will=
help you correct ...
How can I make sure no warning or errors will be displayed when Word starts?
Bookmarks