Close

On the Script tab, in the Macro Commands group: Select Utilities | Close to close the active document.

The FILECLOSE macro function is also accessible in the Macro Editor by selecting Macro | Close from the Process menu.

An alias of the FILECLOSE command, WINDOWCLOSE, can also be found via the Window menu in the macro command list while editing:

These commands can be used following chart commands, for example. When creating many charts in a macro, only so many charts can be loaded at once before system memory is overloaded.

Note that these commands only close one window at a time. To close multiple windows, the command must be repeated for each window.