FileExportConverter.FileFormat property (Excel)
Returns an integer that identifies the file format associated with the specified FileExportConverter object. Read-only.
Syntax
expression.FileFormat
expression A variable that represents a FileExportConverter object.
Example
The following example displays the file format identifier for the first file converter in the FileExportConverters collection.
Dim fcTemp As FileExportConverter
Set fcTemp = FileExportConverters(1)
MsgBox "The file format identifier for the file converter is: " & fcTemp.FileFormat
The following example shows how to use the file format identifier as a parameter in the SaveAs method of the Workbook object to save a file by using the first file converter in the FileExportConverters collection.
ActiveWorkbook.SaveAs _
Filename:="C:\temp\myFile.xyz", _
FileFormat:=Application.FileExportConverters(1).FileFormat, _
CreateBackup:=False
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for