I use xlswrite and xlswritespec all the time. I am having a specific problem with xlswrite (see below)
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Stephen Forczyk
am 17 Sep. 2018
Beantwortet: Stephen Forczyk
am 20 Sep. 2018
What I want to do is use 1 script to write to an Excel File on one sheet. After this is complete I want a second script to write additional data to a different sheet on the same file. I am getting errors when I try to perform the second write because xlswrite returns a message that says the file is now write locked. How can I get past this problem?
0 Kommentare
Akzeptierte Antwort
Naman Chaturvedi
am 20 Sep. 2018
Did you make sure that the file is not open?
xlswrite() actually launches Excel and tries to open the file. So if you have the file already opened in Excel, even though you launched it via ActiveX, you won't be able to write to it because the ActiveX process has ahold of it.
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Use COM Objects in MATLAB 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!