Note: This topic doesn’t apply to JavaScript scripts.
You can manually code a macro by writing it in the Script Editor or the VSTA Editor. (Alternatively, in Corel DESIGNER and CorelDRAW, you can create a VBA macro by recording it. For information, see Recording macros.) Macros that are developed in the Script Editor or the VSTA Editor can take advantage of full programming control, including conditional execution, looping, and branching. In effect, you can write macros that are programs in their own right.
In this documentation, all macro code is referred to as a macro. In some contexts, however, a macro is just those parts of the code that can be run by Corel DESIGNER, CorelDRAW, or Corel PHOTO-PAINT.
To write a macro, you must first add it to a code module for the desired macro project. You can edit, rename, or even delete macros.
For details on writing macros, see the following procedures:
In the Scripts docker, do one of the following:
Some macro projects are locked and cannot be modified.
For detailed information on manually coding macros, see How is automation coding structured?.