Open Automation server window
MaximizeCommandWindow(h) displays the window
for the server attached to handle
h, and makes
it the currently active window on the desktop.
MaximizeCommandWindow restores the window
to the size it had at the time it was minimized, not to the maximum
size on the desktop. If the server window was not previously in a
MaximizeCommandWindow does nothing.
From a Visual Basic® .NET client, modify the size of the command window in a MATLAB® Automation server. To run examples in products that execute VBA code, see Tips.
Dim Matlab As Object Matlab = CreateObject("matlab.application") Matlab.MinimizeCommandWindow 'Now return the server window to its former state on 'the desktop and make it the currently active window. Matlab.MaximizeCommandWindow
To run examples in Microsoft® Office products that execute VBA code, replace the statement:
MatLab = CreateObject("matlab.application")
Set MatLab = CreateObject("matlab.application")
If you need more information, then refer to your VBA product documentation.