.. highlightlang:: us .. index:: IsFileExcelUTX .. _isfileexcelutx: IsFileExcelUTX ============== .. us.tag IsFileExcelUTX ENGLISH FILE_MISC excel New550 :ref:`IsFileExcelUTX` checks if the given file is an Excel file (:file:`.XLS`). .. function:: nVersion = IsFileExcelUTX(ssFileName) .. us.return **Return Value** This function returns the version number multiplied by 10, or 0 if the file is not an Excel file or cannot be opened. .. us.params **Parameters** .. uparam:: ssFileName *ssFileName* is the file name. .. us.example **Example** :: if (IsFileExcelUTX("c:/data/test.xls")) { MessageBox("test.xls is an Excel File"); } else { MessageBox("test.xls is not an Excel File"); } .. seealso:: :ref:`overview-excel-files`, :ref:`ExcelRead`, :ref:`ExcelWrite`, :ref:`ExcelGetSheetNames` :sub:`id-606026`