Results 1 to 4 of 4

Thread: Convert 2000 format to 97 format? , How?

  1. #1

    Thread Starter
    Addicted Member oktay's Avatar
    Join Date
    Mar 2001
    Location
    Istanbul-TURKEY
    Posts
    158

    Convert 2000 format to 97 format? , How?

    Hi,
    Can I make a program that can change word2000 and excel2000 documents in office97 format ?.There is a lot of document ( more than 1000 ).How?

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    VB Code:
    1. Dim x As New Word.Application
    2.     x.ActiveDocument.SaveAs "c:\something.doc", fileFormatConstant

    Thats how you'd do it, but im currently looking for the proper format for you...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    You can use the fileconverter, and would use this converter : "Word 97-2002 & 6.0/95 - RTF"
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    According to this sub I wrote in word :

    VB Code:
    1. Sub s()
    2.     For Each conv In FileConverters
    3.         If InStr(conv.FormatName, "97") <> 0 And InStr(conv.FormatName, "2002") <> 0 Then
    4.             InputBox "", "", conv.SaveFormat
    5.         End If
    6.     Next conv
    7. End Sub

    You would use Converter 21.
    So the original code would look like this :

    VB Code:
    1. Dim x As New Word.Application
    2.     x.Documents.Open "c:\a.doc"
    3.     x.ActiveDocument.SaveAs "c:\b.doc", 21
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width