xlsread when cell is changed
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Spreadsheets en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!