That line of code says to import an .xlsx spreadsheet. If you are trying to import something else. then we need to change the 10 to the appropriate value.
If you are importing an .xls file in 2000 format, then you will want the 10 to be an 8
Alan