Run MS Excel macro
Run MS Excel macro
USAGE
xls_run_macro(xlsfile,macro)
xls_run_macro(xlsfile,macro,params)
INPUT
- XLSFILE: name of the XLS-file
- MACRO: macro name
- PARAMS: parameters for the MACRO
OUTPUT
- XLSFILE will be edited
N.B.
- In some cases when an error occurs, MS Excel must be manually closed (in Task Manager for Windows systems)
- Some macros do not run if the visibility of MS Excel is off. So it is on by default.
Cite As
Guilherme Coco Beltramini (2026). Run MS Excel macro (https://uk.mathworks.com/matlabcentral/fileexchange/42063-run-ms-excel-macro), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Check if XLS file is open and close it
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
