>I can use the SaveAs() command to tell Word where and what to save a document as, but I don't know how to tell Word what format to save the document.
>
>Here's what I have...
>
>>oWord.ActiveDocument.SaveAs("54947.doc",0,.T.,"",.T.,"",.F.,.F.,.F.,.F.,.F.)
>
>This was formatted from below which was created in the Word Macro Editor...
>>.ActiveDocument.SaveAs FileName:="54947.doc", format:=wdFormatDocument, _LockComments:=False, Password:="", AddToRecentFiles:=True, WritePassword _:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False,
>>_SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _False
>
>So how do I tell Word to save my current doc in Word 97 format?
>
>Thanks
>Tom Welch
Tom,
If I don't read you wrong you already say it with second parameter - 0 = wdFormatDocument. If I'm not wrong all following "0" have their default values and optional. So you could shorten it to :
oWord.ActiveDocument.SaveAs("54947.doc",0)
If you mean you absolutely want to save in w97 format (from wd2000 for example) then you would use FileConverters collection. Check for a similar thread yesterday.
Cetin