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)
wdFormatDocument97(Added in 2007) Microsoft word 97 document format (0)
wdFormatTemplate97(Added in 2007) Microsoft word 97 template format (1)
wdFormatXMLDocument(Added in 2007) Word Document (.docx) (12)
wdFormatXMLDocumentMacroEnabled(Added in 2007) Word Macro-Enabled Document (.docm) (13)
wdFormatXMLTemplate(Added in 2007) Word Template (.dotx) (14)
wdFormatXMLTemplateMacroEnabled(Added in 2007) Word Macro-Enabled Template (.dotm) (15)
wdFormatDocumentDefault(Added in 2007) Word default document file format
For Word 2007 and 2010 this is .docx.
wdFormatPDF(Added in 2007) PDF format (17)
wdFormatXPS(Added in 2007) XPS 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
(Added in 2007) Microsoft word 97 document format (0)
wdFormatTemplate97
(Added in 2007) Microsoft word 97 template format (1)
wdFormatXMLDocument
(Added in 2007) Word Document (.docx) (12)
wdFormatXMLDocumentMacroEnabled
(Added in 2007) Word Macro-Enabled Document (.docm) (13)
wdFormatXMLTemplate
(Added in 2007) Word Template (.dotx) (14)
wdFormatXMLTemplateMacroEnabled
(Added in 2007) Word Macro-Enabled Template (.dotm) (15)
wdFormatDocumentDefault
(Added in 2007) Word default document file format
For Word 2007 and 2010 this is .docx.
wdFormatPDF
(Added in 2007) PDF format (17)
wdFormatXPS
(Added in 2007) 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.

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