XLSREAD error line 260: Out of Present Range

5 views (last 30 days)
My script which has been running fine for over a year developed a bug when I did a minor update to the Excel file that it was calling. Between the last time I used this script and now, I also updated to R2018a, but I can't imagine that would have a notable impact on this. Using Office Pro Plus 2016. I tried restarting multiple times, ensuring that all instances of Excel aren't running, but the problem persists. The full error is:
"Error using xlsread (line 260) Invoke Error, Dispatch Exception: Out of present range."
Any ideas would be much appreciated.
  1 Comment
Charles Latchoumane
Charles Latchoumane on 30 May 2019
I know this is not a good fix but it worked for me, switch you xlsread to 'basic' (adding it in your xlsread option), this will force to read the xls. I also went through the steps to disable add in and graphic acceleration, untick ignore DDE programs (this all alone didn't do it).
Hope it helps whoever wants to move on quickly.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 5 Jan 2018
  3 Comments
Jonathan Kellogg
Jonathan Kellogg on 6 Jan 2018
Your question about row limits made me go triple check the csv version that there weren't excess rows or columns that had somehow gotten activated. While there weren't excess rows (<500), a bunch of hashtags had been introduced in some columns. I'm not sure quite how, but anyways, I deleted those columns (back to A-AT) and now it seems to load properly. Bizarre, but thank you for triggering me to go look at something I thought I had already solved. Still a bizarre error code though.
Hope you have a great weekend, Walter!

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!