Operation Manual
Using macros to automate tasks | 731
The recording feature is disabled for some macro projects.
Before recording a macro, make sure that you know exactly which actions you want to record and the order in which you want
to record them. When you start recording, the macro recorder captures every change that you make in a drawing. For example, if
you create a shape, resize the shape, and then change its color, the macro records all the changes. When you are done making the
changes, you must stop recording the macro.
Playing macros
You can perform the actions that are associated with a macro by playing that macro.
You can also play a temporary macro.
Learning more about macros
The Developer area on the CorelDRAW community website can help you with its wealth of useful resources: a programming guide, detailed
Object Model reference documentation with code samples, object model diagrams, and in-depth programming articles and tutorials.
The Object Model reference documentation, also referred to as API documentation, includes help on every feature and function that can
be automated in the applications. (Collectively, these features and functions are called an “object model.”) You can easily access relevant
documentation from within the Macro Editor.
The Object Model diagrams provide a hierarchical representation of the features and functions that can be automated in CorelDRAW, Corel
PHOTO-PAINT, and Corel DESIGNER.
For more detailed information about VBA and its programming environment, please consult the Microsoft Visual Basic Help from the
Help menu in the Macro Editor.
For more detailed information about VSTA and its programming environment, please consult the Help menu in the VSTA Editor.
To manually install the macro features
1 On the Windows Control Panel, click Uninstall a program.
2 Double-click CorelDRAW Graphics Suite on the Uninstall or change a program page.
3 Enable the Modify option in the wizard that appears, and follow the instructions.
4 On the Features page of the installation wizard, enable the following check boxes in the Utilities list box:
• Visual Basic for Applications
• Visual Studio Tools for Applications
The macro features for VBA and VSTA are installed with the software by default.
To specify VBA options
1
Click Tools Options.
2 In the Workspace list of categories, click VBA.
3 In the Security area, specify how to control the risk of running malicious macros by clicking Security options.
If you want to bypass this security feature, enable the Trust all installed GMS modules check box, and then proceed to step 6.
4 On the Security level page of the Security dialog box, enable one of the following options: