Range.ExportFragment Method (Word)

Exports the selected range into a document for use as a document fragment.


expression. ExportFragment( _FileName_ , _Format_ )

expression An expression that returns a 'Range' object.


Name Required/Optional Data type Description
FileName Required String Specifies the path and file name of the file in which to save the document fragment.
Format Required WdSaveFormat Specifies the file format of the document fragment file.

Return value