Document.XMLSaveThroughXSLT property (Word)

Sets or returns a String that specifies the path and file name for the Extensible Stylesheet Language Transformation (XSLT) to apply when a user saves a document.

Syntax

expression. XMLSaveThroughXSLT

expression An expression that returns a Document object.

Remarks

The XMLSaveThroughXSLT property is only applicable when the XMLUseXSLTWhenSaving property is set to True. If the XMLUseXSLTWhenSaving property is set to False, Microsoft Word will ignore the XMLSaveThroughXSLT property.

Example

The following example specifies that Word will use an XSLT when saving the active document, and then it specifies which XSLT to use.

ActiveDocument.XMLUseXSLTWhenSaving = True 
ActiveDocument.XMLSaveThroughXSLT = "c:\schemas\book.xsl"

See also

Document Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.