Running a macro in excel from Matlab

2 visualizaciones (últimos 30 días)
David
David el 18 de Mzo. de 2016
Comentada: Guilherme Brigagão el 6 de Ag. de 2019
I have found codes for running macros in excel from matlab, however, it is generic code. Could I see someone's example code for running a macro in excel from matlab. Below is the code I currently have.
xlsfile = 'First_gui.xlsx'; macro = 'Split_Cells';
xls_run_macro(xlsfile,macro);

Respuestas (1)

Krishna Chaitanya Duggineni
Krishna Chaitanya Duggineni el 23 de Mzo. de 2016
One way to invoke an Excel macro from MATLAB is by launching Excel as a COM server from MATLAB using the 'actxserver' command.
See the example in the link below.
  1 comentario
Guilherme Brigagão
Guilherme Brigagão el 6 de Ag. de 2019
Hey! Can you copy the answer here? I can't see this link..

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by