xlsfinfo not working but xlsread and xlswrite are working
Show older comments
Hello, xlsfinfo is not working. Looks like this is a persistent issue. I searched on Google and many users have the same problem. But I did not see a solution. The description field returned from xlsfinfo is empty. Here is my session. I have also attached the 2 files referred to below. Please help.
>> [a,descr,fmt]=xlsfinfo('trial.xlsm')
a =
Microsoft Excel Spreadsheet
descr =
Empty cell array: 1-by-0
fmt =
xlOpenXMLWorkbookMacroEnabled
>> [a,descr,fmt]=xlsfinfo('trial.xls')
a =
Microsoft Excel Spreadsheet
descr =
Empty cell array: 1-by-0
fmt =
xlExcel8
7 Comments
Muneer Shaik
on 13 Jun 2015
Hello Sanjay
Did you get an answer for your question...
Dear Mathworks Can someone respond to sanjay's question as Iam also facing the similar problem..
Walter Roberson
on 13 Jun 2015
Which operating system is involved? If it is MS Windows, then which version of Excel is installed?
The list of sheets shows up fine for me in R2014a for OS-X (which does not talk to Excel to get the information, using internal code instead; that could be important if Excel is the culprit)
Aniruddh Murali
on 5 Feb 2018
Hello, I am facing a similar issue with xlsfinfo, using matlab 2016 a, on Ubuntu. I am able to use read and write function with xls, but xlsfinfo is giving null.
Aniruddh Murali
on 18 Mar 2018
So When I Tried checking data from the excel worksheet Run1.xlsx it showed this error. I need to know the number of sheets this excel has. If there is an easier way please let me know.
>> status = xlsfinfo('Run1.xlsx');
>> status
status =
''
@Aniruddh Murali: "Showed this error"? Which error?
The documentation of xlsfinfo explains:
If filename is not a file that xlsread can read, then status is empty, ''
Can you open the file with Excel on your computer?
Image Analyst
on 18 Mar 2018
Aniruddh, please attach your 'Run1.xlsx'.
Answers (0)
Categories
Find more on Spreadsheets in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!