I want to read data from excel in a table (in appdesigner) and edit some of them and then update them (writting the modified data) again in excel file. How can I do that?

 採用された回答

Ameer Hamza
Ameer Hamza 2020 年 4 月 16 日

0 投票

See the attached file for an example. A sample excel file is also attached. Clicking the load button will open a dialog box. Select the excel file, and the app will load its content in a table. Now change the content and press the save button. The content of the original file will be changed.

7 件のコメント

Ali K
Ali K 2020 年 4 月 16 日
Perfect. It works.
Ameer Hamza
Ameer Hamza 2020 年 4 月 16 日
Glad to be of help.
Ali K
Ali K 2020 年 4 月 16 日
But It removes all other sheets. Why? I want to keep them.
Ameer Hamza
Ameer Hamza 2020 年 4 月 16 日
The app use writetable function, which does not automatically delete all other sheets in R2020a. Which release are you using?
Ali K
Ali K 2020 年 4 月 16 日
R2019b
Ali K
Ali K 2020 年 4 月 16 日
It works, thank you.
Ameer Hamza
Ameer Hamza 2020 年 4 月 16 日
Glad to be of help.

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

2020 年 4 月 16 日

コメント済み:

2020 年 4 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by