Hi,
It is not possible through direct Mathcad commands but still it possible through system screen setting commands.
MC.ActiveWindow.ScrollTo 0, rk.Y ''Fix Tag Name to the area which needs to be collapsed/expanded and scroll down to the location of the area by tag name.
AppActivate MC, False ''Enable/Activate Mathcad screen
MC.Left = 0 ''Set Mathcad Screen to Left Corner to the display screen.
MC.Top = 0 ''Set Mathcad Screen to Top Corner to the display screen.
mouse_event MOUSEEVENTF_LEFTDOWN, 0&, 0&, 0&, 0& ''Double click command
mouse_event MOUSEEVENTF_leftUP, 0&, 0&, 0&, 0&
mouse_event MOUSEEVENTF_LEFTDOWN, 0&, 0&, 0&, 0&
mouse_event MOUSEEVENTF_leftUP, 0&, 0&, 0&, 0&
This really works.
Have fun.
Regards,
Vinoth