Range.ExportAsFixedFormat method (Excel)
Exports to a file of the specified format.
Syntax
expression.ExportAsFixedFormat (Type, FileName, Quality, IncludeDocProperties, IgnorePrintAreas, From, To, OpenAfterPublish, FixedFormatExtClassPtr)
expression A variable that represents a Range object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Type | Required | XlFixedFormatType | The type of file format to export to. |
FileName | Optional | Variant | The file name of the file to be saved. You can include a full path, or Excel saves the file in the current folder. |
Quality | Optional | Variant | Optional XlFixedFormatQuality. Specifies the quality of the published file. |
IncludeDocProperties | Optional | Variant | True to include the document properties; otherwise, False. |
IgnorePrintAreas | Optional | Variant | True to ignore any print areas set when publishing; otherwise, False. |
From | Optional | Variant | The number of the page at which to start publishing. If this argument is omitted, publishing starts at the beginning. |
To | Optional | Variant | The number of the last page to publish. If this argument is omitted, publishing ends with the last page. |
OpenAfterPublish | Optional | Variant | True to display the file in the viewer after it is published; otherwise, False. |
FixedFormatExtClassPtr | Optional | Variant | Pointer to the FixedFormatExt class. |
Remarks
This method also supports initializing an add-in to export a file to a fixed-format file. For example, Excel will perform file format conversion if the converters are present. The conversion is usually initiated by the user.
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.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기