ExcelApp Property: Sample Code
Microsoft® Visual Basic for Applications
Dim ExcelObject As Variant
If Not (IsEmpty(SimAuto.ExcelApp)) Then
Set ExcelObject = SimAuto.ExcelApp
ExcelObject.DisplayAlerts = False
ExcelObject.Quit
Else
MsgBox("Attempted to obtain Excel COM object from " + _
"Simulator, but there is not one open.")
End If
Matlab®
MATLAB is currently unable to handle COM object properties returning COM objects themselves, such as the ExcelApp property of Simulator.