MATLAB: Count number of sheets in excel file

excelMATLAB

I want to count the number of sheets in an excel file. I want to read from an excel file and count the number of sheets in that file and save that number to use as iteration count in a for loop.

Best Answer

[status,sheets] = xlsfinfo(filename)