How to check if excel is installed?

11 views (last 30 days)
My script writes to an xls file. I am packaging this as an app to pass onto others to use. However it occurred to me that it could be possible that they don't have excel. I was wondering if there was a way for matlab to check if you have excel installed before writing/opening an excel file.

Accepted Answer

Walter Roberson
Walter Roberson on 30 Oct 2020
Look at the code for xlswrite, which does
Excel =;
catch exception %#ok<NASGU>
Walter Roberson
Walter Roberson on 2 Nov 2020
It will error in ActiveX attempt, which is why the try/catch

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!