Runnig MATLAB code, "Could not start Excel server for import, 'basic' mode will be used." How do I fix this?

13 views (last 30 days)
I have Windows 10 (Although I had this same problem with windows 8.1) installed on a PC with i7, 8GB RAM, and NVIDIA graphics. I am running MATLAB 2015b (although I had same problem with 2014a) and I also have Microsoft Office Professional Plus 2013 installed which has Excel obviously. When I try and execute any xlsread command I get the error "Could not start Excel server for import, 'basic' mode will be used." Which is ok, except I also get "Range cannot be used in 'basic' mode. The entire sheet will be loaded." after as my program cannot perform its operation on the data in basic mode apparently. Now basic mode is only supposed to be used if Excel is not installed, or on Macs because of some COM issue. Since I have the full and complete versions of all this software and am using a fully up to date windows PC, why am I getting this error? And how do I fix it?
  1 Comment
Walter Roberson
Walter Roberson on 9 Aug 2015
Hypothetically you could get this problem if you are using the 32 bit MATLAB and have only the 64 bit Excel installed, or if you are using the 64 bit MATLAB and have only the 32 bit Excel installed.

Sign in to comment.

Answers (2)

Xiaolong Jin
Xiaolong Jin on 7 Feb 2018
I solved this problem by changing the properties of Excel. Right click on Excel--select properties--click the 'compatibility'Tab--tick the 'run this program in compatibility mode for'-- select 'windows 7' or other options. Hope it works!

Varun Bhaskar
Varun Bhaskar on 10 Aug 2015
Hello,
I understand that you are seeing the error ‘Could not start Excel server for import, ‘basic’ mode will be used’.
One of the reasons why this might occur is that the actxserver.m is not on path. To find out whether the correct actxserver.m is being used, execute the following on MATLAB command prompt
>>which actxserver
If this does not point to the correct version of actxserver.m, make MATLAB point to the correct version in order to resolve the issue.
If the above step does not work, try the following:
1) Ensure that Excel is registered as an application in the system registry
2) Launch MATLAB as an administrator
3) If you are using 32 bit Excel , try using 32 bit MATLAB.

Categories

Find more on Data Export to MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!