xlsread when cell is changed
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Spreadsheets in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!