How to read an excel spreadsheet without the spreadsheet appearing on the screen

1 view (last 30 days)
I'm using xlsread to read ranges on an excel spreadsheet. It all goes well except that the spreadsheet keeps appearing on the screen when data is being read. Is there a way to prevent it to happen?

Accepted Answer

Jan
Jan on 29 Jun 2014
This is not the standard behavior of xlsread. So please post your code and show us the reply of:
which xlsread
Which OS and Matlab version are you using?
  3 Comments
christophe sailland
christophe sailland on 29 Jun 2014
And with the code .... which xlsread C:\Program Files\MATLAB\R2014a\toolbox\matlab\iofun\xlsread.m
data_input=xlsread(filename_input,sheet_input_MR,xlRange_input_MR_param);
Image Analyst
Image Analyst on 29 Jun 2014
You officially marked it as Accepted so you've solved it (or Jan did somehow). What did you do to fix the issue , in case others have your same problem?

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 29 Jun 2014
You aren't using ActiveX to read it, are you? Because that can happen maybe with that approach if the .visible property is set true. Are you using xlsread() or readtable()? It should not happen with those functions.

Community Treasure Hunt

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

Start Hunting!