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?

댓글을 달려면 로그인하십시오.

답변 (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 CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by