ExportFragment Method
Collapse the table of content
Expand the table of content

Range.ExportFragment Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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.

Parameters

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

Nothing

Show:
© 2016 Microsoft