xlswrite in office 365

8 vues (au cours des 30 derniers jours)
Indra le 20 Sep 2018
I am using matlab 2017a and office 365. matlab gives this error when i run a m.file.
Error using xlswrite (line 226) Invoke Error, Dispatch Exception: Source: Microsoft Excel Description: Document not saved. Help File: xlmain11.chm Help Context ID: 0
Error in Func_Out_Excel (line 377) xlswrite(FileName, gg22, SheetName, 'AB49');
I check excel com addins and i have these inactive com addins. Can anyone help to solve the issue? Before same code was working fine, after updating to office 365 it's not working. I checked, My office is upto date too and all excel file is closed during the running the code.

Réponses (1)

Zenin Easa Panthakkalakath
Check you have enough privileges in the directory you are currently in. Check if you have permission isn't limited to 'Read Only'.
If the above doesn't solve your issue, can you try saving it with a new name? If that works, then just try to remove the original file and rename the new file with the original file's name.




Community Treasure Hunt

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

Start Hunting!

Translated by