Click to See Complete Forum and Search --> : Convert Word Documents to RTF
Nikki
August 13th, 2001, 10:02 AM
Hello,
Could anybody please provide me a way to convert Word Documents to RTF programmatically without opening the document?
Iouri
August 13th, 2001, 11:40 AM
'Try this ( of course Word lib must be added)
Sub ConvertWordDoc()
Static WordObj As Word.Application
Set WordObj = CreateObject("Word.Application")
WordObj.Documents.Open ("c:\my documents\test.doc")
'Disable viewing the Word session
'and its document
WordObj.Visible = False
WordObj.ActiveDocument.SaveAs "c:\my documents\test.rtf", wdFormatRTF
WordObj.Quit savechanges:=False
Set WordObj = Nothing
End Sub
Iouri Boutchkine
iouri@hotsheet.com
Nikki
August 13th, 2001, 04:07 PM
Thank you, it works.
inputusername
March 26th, 2002, 12:42 PM
Does anyone know how to use the word object model in embedded VB. I need a program to convert pocket word docs to text files. Thanks.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.