Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How i can close a word doc without appear the confirm box?

Status
Not open for further replies.

diembi

Programmer
Sep 22, 2001
238
ES
Hello!!
How i can close a not visible word doc without appear the confirm dialog box from vbscript when i call the quit method?

Thanks people!!
 
I had this very problem while working with the excel object. The solution was to supress the alerts. I just browsed the word object, it looks to have the same method available: DisplayAlerts. A small example.

objWord = CreateObject("Word.Application")

' Supress the alerts wdAlertsNone = 0
objWord.DisplayAlerts = wdAlertsNone

Hope that helps.

Dave Woodall
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top