xlsread when cell is changed
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I'm working on a program that would ideally allow the user to change a value in excel, and output data below it everytime the cell value is changed (similar to an editable UItable with callbacks). My test code so far looks like:
excel = actxserver('excel.application');
excel.Workbooks.Open('C:\test.xlsx');
excel.Visible=1;
jrange=excel.Range('C2:C2');
j=jrange.Value
a=j*4;
xlswrite('C:\test.xlsx',a,'C3:C3');
The issue is that in order to recalculate, the user must change the number THEN hit run in matlab. My goal is to avoid hitting run, so that the user can just change the value and the calculations will perform and return a new number. Is this doable?
Thanks!
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!