Writing to table in matlab does not appear in a shared workbook?
Show older comments
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 Comments
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
on 13 Jan 2025
Stephen23
on 13 Jan 2025
The option is actually UseExcel:
MKM
on 13 Jan 2025
MKM
on 16 Jan 2025
Accepted Answer
More Answers (0)
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!