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

How to save Word 2.0 doc current Word format?

Status
Not open for further replies.

BBaggins

Programmer
Apr 11, 2001
58
US
I have Word 2.0 documents that I would like to programmatically resave in the current (Word 97 and beyond) Word format. I've tried capturing the "do you want to save this 2.0 docu..." dialog in a macro, but that didn't work.

Maybe this isn't something you can do in VBA?
 
Application.DefaultSaveFormat = ""
Application.DisplayAlerts = wdAlertsNone
Err.Clear
ActiveDocument.SaveAs FileName:=ActiveDocument.Name, FileFormat:= wdFormatDocument
Application.DisplayAlerts = wdAlertsAll

Greg
 
And use the Dir function to process through all the files in a folder.

Gerry
 
Thsnks for the advice, but it didn't do the trick. After saving, the Word 2.0 document is still in the 2.0 format.

If I save it manually in Word (10.0), Word asks me if I want to preserve the original file format or overwrite it in the current Word format. That's what I'm trying to automate.
 
I am much better at Excel but I am running Word 10 with SP3 and the code snippet above worked fine. Maybe one of the Word gurus can help. Sorry.

Greg
 
I don't have any Word 2.0 files. Could you send me, say 3 or 4 (if that is OK) and I will try myself. If it is op to send them, send to my handle at telus dot net. Ther may be a specific syntax with FileConverter required.

It SHOULD work.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top