You can use macros to perform repetitive or complex tasks automatically. Macros are scripts that contain a list of instructions, and they can perform most of the tasks that you would normally perform using keystrokes, mouse actions, and menu commands.
In this section, you'll learn about
understanding macros
working with macros
For more information about using macros, see "Reference: Using macros in Corel Presentations."
Understanding macros
A macro can consist of programming commands, product commands, and comments. Macro tasks consist of instructions called statements. There are several kinds of statements: assignments, conditions, and loops. For example, the commands
SetBrushShape (Circle!)
SetBrushWidth (25)
set the properties for the Paint Brush tool. Each command represents one instruction or statement. The simplest macro consists of only one statement. Complex macros have hundreds of statements. The sequence of statements determines how a macro performs its tasks.
There are two types of macros that can be used in Corel Presentations:
A PerfectScript macro, which is stored with a .wcm file extension. This macro is useful if you want to interact with other WordPerfect Office applications, such as Quattro Pro or WordPerfect. For information about PerfectScript macros, see "Generating and editing Corel Presentations macros by using PerfectScript."
Microsoft Visual Basic for Applications (VBA), which lets you develop scripts that are saved in specific projects that use VBA programming language. You can access the VBA editor from within Corel Presentations. For information about VBA macros, see "Working with Corel Presentations macros using Visual Basic for Applications (VBA)."
Working with macros
One way to create a macro is to record and save a task in Corel Presentations. When you record a macro, you convert actions into macro commands, which are stored and can be played back. You can then play a macro to repeat a sequence of steps for a task that you have recorded or written, including project and global VBA macros. You can only play a project macro from the document that was used to create it. For information about VBA macros in Corel Presentations, see "Working with Corel Presentations macros using Visual Basic for Applications (VBA)." While recording or playing a macro, you can pause, resume, or stop it.
To record a macro
1 Click Tools Macro Record.
2 Choose the drive and folder where you want to save the macro.
3 Type a filename in the Filename box.
4 Click Save.
5 Perform the actions you want to record.
6 Click Tools Macro Stop.
To play a macro
1 Click Tools Macro Play.
2 Choose the drive and folder where the macro is stored.
3 Choose a filename.
4 Click Open.
To play a project VBA macro
1 Click Tools Visual Basic Play.
2 Choose Project from the Macros in list box.
3 Type a macro name in the Macro name list box.
4 Click Run.
To play a global VBA macro
1 Click Tools Visual Basic Play.
2 Choose Global from the Macros in list box.
3 Type a macro name in the Macro name box.
4 Click Run.
To pause, resume, or stop recording or playing a macro
To Do the following
Pause or resume a macro Click Tools Macro Pause.
Stop a macro Click Tools Macro Stop.
Note
A check mark beside the Pause menu command indicates that the macro is paused.
Tip
You can also stop a macro recording by disabling the checkmark beside the Record menu command.
Reference: Using macros in Corel Presentations
Several macros are included with Corel Presentations.
Playing macros included with Corel Presentations
When you installed Corel Presentations, the shipping macros listed in the following table were included to help you automate and simplify several common tasks.
Play To
chngfnt.wcm Change the font face and color throughout a slide show.
headfoot.wcm Add a header or footer to a document, which includes the date, filename, slide number, slide title, and any other information you specify.
imgemap.wcm Create HTML Image Map codes for any existing bitmaps, which allows you to use them on the Internet.
macedit.wcm Edit a macro in a Corel Presentations text box.