Excel) (Application.FileConverters 屬性

會傳回已安裝的檔案轉換程式的相關資訊。 如果不有任何已安裝的轉換程式會傳回 null 。 唯讀 Variant

語法

運算式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 選用 變數 轉換程式 DLL 或原始程式碼的路徑。

註解

如果您未指定索引引數,這個屬性會傳回陣列,其中包含所有已安裝檔案轉換程式的相關資訊。 陣列中的每一列會包含一個檔案轉換程式的資訊,如下表所示。

內容
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 支援與意見反應