Word 2007
(1)
Linux
(1)
Word
(1)
WdFormatDocumentDefault
(1)
ProcessSubFolders
(1)
WdFormatDocument97
(1)
ODoc.SaveAs
(1)
StrDocName
(1)

From .odt to .doc

Asked By Mario - Roma
18-Mar-10 01:36 PM
I need to convert a large number (thousands) of .odt documents created with
OpenOffice to the .doc Word format.
I know that there are Linux based tools.
Is there any Windows based tool, better if freeware, I can use instead?
Regards
Marius

Recent (and updated) versions of Word 2007 will open ODT format documents.

Graham Mayor replied to Mario - Roma
19-Mar-10 02:07 AM
Recent (and updated) versions of Word 2007 will open ODT format documents.
You can then use a simple batch process to convert the documents to DOC or
DOCX format, or convert them on an ad hoc basis as you require them. The
add-in at http://www.gmayor.com/Works_Batch_Converter.htm could easily be
modified to achieve this.

In the module - ProcessSubFolders
Change the line

Const FileType = "*.wps"
to
Const FileType = "*.odt"

and change the lines

strDocName = strDocName & ".docx"
oDoc.SaveAs FileName:=strFolder & "\" & strDocName, _
FileFormat:=wdFormatDocumentDefault
to
strDocName = strDocName & ".docx"
oDoc.SaveAs FileName:=strFolder & "\" & strDocName, _
FileFormat:=wdFormatDocument97

to save as DOC rather than DOCX


--
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
Post Question To EggHeadCafe