Error using xlswrite (line 226)
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi All,
I'm trying to use xlswrite but I received this message:
"Error using xlswrite (line 226) Invoke Error, Dispatch Exception: Source: Microsoft Excel Description: Microsoft Excel cannot access the file 'C:\Program FilesC:\Program Files\MATLAB\R2017a\bin\9DDE4000"
What is very strange is that instead xlsread work for the same file. I have no idea of reason. My Office release is 2019 and is activated.
Thank you in advance. Any suggests is very appreciated.
Emanuele
4 Kommentare
dpb
am 27 Okt. 2019
'C:\Program FilesC:\Program Files\MATLAB\R2017a\bin\9DDE4000"
looks funky -- the "C:\Program Files" is duplicated. I'd first suspect your code building the file name has a problem.
Secondly, use Task Manager and make sure there are no zombie copies of Excel still hanging around that didn't close successfully after an earlier failed attempt. I've had that happen innumerable times while messing around w/ COM and having made a typo that caused an internal failure--the cleanup code apparently can't always fix up everything.
Alternatively, closing and restarting MATLAB will get rid of any such instances as well, but until the filename issue is resolved I think you'll continue to have issues...at least that's what the crystal ball is reading.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!