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!

convert word file

Status
Not open for further replies.

IDTstudios1

Programmer
Aug 8, 2004
72
US
I need to know if there is a way to convert a Word 2003 or Word 2000 file to be compatible with word 97.

thanks
 
In the Save As dialog choose Saves As Type: Word 97 - 2003.

Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
sry this is my fault... i meant is there a way to do it through vb. sorry i failed to mention that.

thanks
 
the above link merely shows the file converters installed.

the following provides an actual example you can use:

but, these examples are stil within Office/Word VBA.

in VB, you need to reference the Word object library, create a Word object in you VB app, Load the original document, and then invoke the SaveAs method utilizing the correct file format.

try this to find out the SaveAs format to use:

Code:
Private Sub Form_Load()

Dim w As Object

  Set w = New Word.Application
  
  For Each c In w.FileConverters
    Debug.Print c.FormatName
  Next c
  
End Sub
 
Hi,

rsinj is right !

The link he provides will bring you straight to the point.

IMHO : just to be on the safe side, and if you want to use other file formats, it would be safe to check the CanSave property of the FileConverter before invoking the SaveAs method.

Using the code rsinj sent :

Code:
Private Sub Form_Load()

Dim w As Object

  Set w = New Word.Application
  
  For Each c In w.FileConverters

    If c.CanSave Then
         Debug.Print c.FormatName
    End If

  Next c
  
End Sub

Droops.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top