How to use xlswrite to wirte excel sheet each time dynamically?

1 回表示 (過去 30 日間)
Rohit Bhoi
Rohit Bhoi 2016 年 2 月 20 日
回答済み: dpb 2016 年 2 月 20 日
I have a GUI in which there are 7 text boxes and 7 static boxes and one button. whenever I press button it perform some operation and gives result in 5,6,7 text box. now i have to write this data in excel sheet each time whenever user press button.How to do this?
  2 件のコメント
Preethi
Preethi 2016 年 2 月 20 日
you want to append the data to excel sheet after each keypress?
Rohit Bhoi
Rohit Bhoi 2016 年 2 月 20 日
how?

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

回答 (1 件)

dpb
dpb 2016 年 2 月 20 日
You have to decide where in the sheet you want the values written; xlswrite will not accept multiple ranges in a single call; you either have to write each cell with a separate call or define an array that covers the rectangular portion of the worksheet that is the target.
Or, use actxserver to create a COM automation server and manipulate Excel thru it.

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by