Application.FileConverters 属性 (Excel)

返回有关已安装的文件转换器的信息。 如果不没有安装任何转换器,则返回 null 。 只读变体

语法

表达式FileConverters (Index1Index2)

expression:表示 Application 对象的变量。

参数

名称 必需/可选 数据类型 说明
Index1 可选 Variant The long name of the converter, including the file-type search string in Windows (for example, "Lotus 1-2-3 Files (.wk)").
Index2 可选 Variant 转换器 DLL 或代码资源的路径。

备注

如果未指定索引参数,此属性将返回一个数组,其中包含有关所有已安装的文件转换器的信息。 数组中的每一行包含有关单个文件转换器的信息,如下表所示。

Column 目录
1 转换器的长名称
2 转换器动态 DLL 或代码资源的路径
3 文件扩展名搜索字符串

示例

本示例显示是否安装了“Multiplan”文件转换器。

installedCvts = Application.FileConverters 
foundMultiplan = False 
If Not IsNull(installedCvts) Then 
 For arrayRow = 1 To UBound(installedCvts, 1) 
 If installedCvts(arrayRow, 1) Like "*Multiplan*" Then 
 foundMultiplan = True 
 Exit For 
 End If 
 Next arrayRow 
End If 
If foundMultiplan = True Then 
 MsgBox "Multiplan converter is installed" 
Else 
 MsgBox "Multiplan converter is not installed" 
End If

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。