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!