File Exchange

image thumbnail

Handling MATLAB Events in Excel

version (3.31 MB) by Peter Webb
Source code for Sept. 2006 News and Notes Programming Patterns article.

1 Download

Updated 17 Nov 2010

View Version History

View License

The Global Temperature Explorer application demonstrates how to integrate MATLAB GUIs into Excel by writing Visual Basic callbacks that can respond to events generated by the GUI.

The application consists of two parts, a COM component generated by MATLAB Builder for .NET, and a Visual Basic class module that integrates the COM component into Excel. The COM component consists of M-files and data files; it displays a data navigation GUI and exports two events: "DisplayLocation" and "PlotTempData". The Visual Basic
code contains callbacks that respond to the exported events and a macro used to launch the data navigation GUI.

Cite As

Peter Webb (2021). Handling MATLAB Events in Excel (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Baiju Max


I have written a long running algorithm (takes 15 to 30 Mins to complete) in MatLab and converted it to a dotnet 2.0 assembly using 'deploytool'.I am using VC# to call the Matlab function and everything works just great.

However the only problem is that i cant see the progress of the program .The user clicks OK button and then he has to wait for 15-30 minutes for the results.

One solution I see to solve this problem to raise events (to report progress) from matlab and subscribe the same in VC# and inform the user about the progress.

Is there any way of doing the same?

Hipson Israel

please excel programing note sent

By Hipson Israel

Hipson Israel

VB excel Programing work book

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!