Copy an Excel worksheet from one workbook to another with Matlab
Afficher commentaires plus anciens
Hi everyone,
I hope you can help me with this problem. I need to copy a worksheet of workbook1 to another workbook2 with exact the same structure/format. There are empty cells and labels in between which I need to copy as well. I tried to save the range in a variable, but that doesn't work for me. I would like to do this via an ActiveX server. Is this possible and what would the code look like? Thanks in advance!
Greetings
Réponse acceptée
Plus de réponses (2)
Neuropragmatist
le 4 Sep 2019
0 votes
Why does readtable followed by writetable not work?:
If the spreadsheets dont have to be in the same file you could also use movefile to just duplicate the original:
Sorry I don't really know about activeX servers.
Hope this helps,
M.
2 commentaires
Image Analyst
le 4 Sep 2019
Does readtable retain formatting? Like font size, color, background fill, border sizes, etc.? I'd doubt it.
Neuropragmatist
le 6 Sep 2019
No you are right it doesn't...
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!
