Writing to table in matlab does not appear in a shared workbook?
Afficher commentaires plus anciens
Trying to write to a excel workbook that has shared privileges. The shared workbook works when two seperate people open it and make changes. Where there is conflict a box appears that allows the users to accept the changes etc...
When i write on the same line using matlab, then use the write command to save it. The changes do not appear on the opened workbook when clicking save. It just saves whatever is in the current workbook at that time with 0 conflicts, even though matlab has already wrote to it.
You only see the changes when you close the workbook and open it again without hitting save.
Is there a way round this ?
5 commentaires
Are you using '...,'UsingExcel',1 in the writetable call?
I'm not terribly surprised of there being issue if the file is already open--the internal Open operation is going to create a new instance; it won't access the already open instance you're looking at interactively.
I haven't researched the documentation about whether this might be doable in VBA via COM/ActiveX, but I suspect that would be the only way possible, not with the present toolset.
MKM
le 13 Jan 2025
Stephen23
le 13 Jan 2025
The option is actually UseExcel:
MKM
le 13 Jan 2025
MKM
le 16 Jan 2025
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!