wdSaveFormat

Specifies the format to use when saving a document.

wdFormatDocumentMicrosoft word document (.doc) (0)
wdFormatDOSTextMicrosoft DOS text (4)
wdFormatDOSTextLineBreaksMicrosoft DOS text with line breaks preserved (5)
wdFormatEncodedTextEncoded text format (7)
wdFormatFilteredHTMLFiltered HTML format (10)
wdFormatHTMLStandard HTML format (8)
wdFormatRTFRich text format (6)
wdFormatTemplateMicrosoft word template format (1)
wdFormatTextMicrosoft windows text format (2)
wdFormatTextLineBreaksMicrosoft windows text format with line breaks preserved (3)
wdFormatUnicodeTextUnicode text format (7)
wdFormatWebArchiveWeb archive format (9)
wdFormatXML(Added in 2003) Word 2003 XML Document (*.xml) (11)
wdFormatDocument97Microsoft word 97 document format (0)
wdFormatTemplate97Microsoft word 97 template format (1)
wdFormatXMLDocumentWord Document (.docx) (12)
wdFormatXMLDocumentMacroEnabledWord Macro-Enabled Document (.docm) (13)
wdFormatXMLTemplateWord Template (.dotx) (14)
wdFormatXMLTemplateMacroEnabledWord Macro-Enabled Template (.dotm) (15)
wdFormatDocumentDefaultWord default document file format
For Word 2007 and 2010 this is .docx.
wdFormatPDFPDF format (17)
wdFormatXPSXPS format (18)
wdFormatOpenDocumentText(Added in 2010)
wdFormatFlatXMLInternal use only
wdFormatFlatXMLMacroEnabledInternal use only
wdFormatFlatXMLTemplateInternal use only
wdFormatFlatXMLTemplateMacroEnabledInternal use only

wdFormatDocument
Microsoft word document (.doc) (0)
wdFormatDOSText
Microsoft DOS text (4)
wdFormatDOSTextLineBreaks
Microsoft DOS text with line breaks preserved (5)
wdFormatEncodedText
Encoded text format (7)
wdFormatFilteredHTML
Filtered HTML format (10)
wdFormatHTML
Standard HTML format (8)
wdFormatRTF
Rich text format (6)
wdFormatTemplate
Microsoft word template format (1)
wdFormatText
Microsoft windows text format (2)
wdFormatTextLineBreaks
Microsoft windows text format with line breaks preserved (3)
wdFormatUnicodeText
Unicode text format (7)
wdFormatWebArchive
Web archive format (9)
wdFormatXML
(Added in 2003) Word 2003 XML Document (*.xml) (11)
wdFormatDocument97
Microsoft word 97 document format (0)
wdFormatTemplate97
Microsoft word 97 template format (1)
wdFormatXMLDocument
Word Document (.docx) (12)
wdFormatXMLDocumentMacroEnabled
Word Macro-Enabled Document (.docm) (13)
wdFormatXMLTemplate
Word Template (.dotx) (14)
wdFormatXMLTemplateMacroEnabled
Word Macro-Enabled Template (.dotm) (15)
wdFormatDocumentDefault
Word default document file format
For Word 2007 and 2010 this is .docx.
wdFormatPDF
PDF format (17)
wdFormatXPS
XPS format (18)
wdFormatOpenDocumentText
(Added in 2010)
wdFormatFlatXML
Internal use only
wdFormatFlatXMLMacroEnabled
Internal use only
wdFormatFlatXMLTemplate
Internal use only
wdFormatFlatXMLTemplateMacroEnabled
Internal use only

REMARKS
* The wdFormatDocumentDefault item pulls the text from the Application.DefaultSaveFormat property.
* If you are using Word 2003 with the compatibility pack you can save as docx by using the file format numerical value of 102.

© 2025 Better Solutions Limited. All Rights Reserved. © 2025 Better Solutions Limited Top