xlsread when cell is changed

조회 수: 1 (최근 30일)
Tanner
Tanner 2016년 1월 13일
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개)

카테고리

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