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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Warnings Off is not working???

Status
Not open for further replies.

Apollo6

Technical User
Jan 27, 2000
418
US
I am opening an archive file (file_name.ptx) in Word. I execute a macro that does some formatting and creates a flatfile which I do a Select All and Cut. I then paste into a new flatfile. Once this is done, well, here's the snippet of code:

Selection.WholeStory
Selection.Cut
SetWarnings = False
ActiveWindow.Close

When it gets to the last command, I receive the following message that is requiring me to respond:

This document contains formatting that cannot be saved in text format. Do you want to save changes to file_name.ptx?

What am I not doing right!?!?!?
 
SetWarnings = False ?

Try Application.DisplayAlerts = wdAlertsNone instead, which will proceed and save the file without any prompts.

A.C.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top