|
-
Oct 1st, 2001, 10:32 AM
#1
Thread Starter
Addicted Member
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?
-
Oct 1st, 2001, 10:38 AM
#2
Retired VBF Adm1nistrator
VB Code:
Dim x As New Word.Application
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]
-
Oct 1st, 2001, 10:40 AM
#3
Retired VBF Adm1nistrator
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]
-
Oct 1st, 2001, 10:48 AM
#4
Retired VBF Adm1nistrator
According to this sub I wrote in word :
VB Code:
Sub s()
For Each conv In FileConverters
If InStr(conv.FormatName, "97") <> 0 And InStr(conv.FormatName, "2002") <> 0 Then
InputBox "", "", conv.SaveFormat
End If
Next conv
End Sub
You would use Converter 21.
So the original code would look like this :
VB Code:
Dim x As New Word.Application
x.Documents.Open "c:\a.doc"
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|