Call/Execute/Run VBA Macro within Google sheets from/using Matlab
조회 수: 7 (최근 30일)
이전 댓글 표시
Hello everyone,
I am after solving a global optimization problem (using matlab script, and matlab solvers) where I do have parameters (and an internal macro VBA script) that lives and resides in google sheet (*.gs file). My problem is:
- I would like to define my matlab parameters
- Push/write them online to google sheet
- Run internal google sheet macro (VBA, *.gs script) using matlab commands,
- After google sheet macro finishes its calculations, read specific cell in matlab
- And optimize those parameters in matlab by keeping track of cost function, constraints, ...etc, and repeat the process.
I cannnot import google sheet to a local Excel copy because (since google sheet uses *.gs script) it does not import it. So saving a local *xls copy does not work bby any means. My only chance is to read the whole VBA code,spend almost a 1 month to re-write it in matlab, then spend another couple of weeks to debug and retest it in Matlab, and I simply do not have neither time nor the effort to do it.
Simply put, my goal is, define parameters in matlab, write them to a google sheet online, initiate a coogle sheet RUN_MACRO command from matlab, let google sheet do its own internal calculations, read the result, create cost function, and rinse-repeat to optimize parameters, till objective is achieved.
I truly and sincerely appreciate any help in this regard,
Sincerely
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!