630592
531
Zoom out
Zoom in
Previous page
1/561
Next page
Using macros and scripts to automate tasks | 529
Using macros and scripts to automate tasks
You can use macros and scripts to speed up repetitive tasks, combine multiple or complex actions, or make an option more easily accessible.
You create macros by using the built-in features for Visual Basic for Applications (VBA) or Visual Studio Tools for Applications (VSTA), and
you create scripts by using the Corel SCRIPT programming language.
Using a macro (or script) is similar to using the speed-dialing feature on a phone. On many phones, you can set a frequently dialed number
to a speed-dial button; then, the next time you need to dial that number, you can save time by pressing its speed-dial button. Similarly, a
macro lets you set the actions that you want to repeat; then, the next time that you need to repeat those actions, you can save time by
playing that macro.
You can use either a macro or a script to automate a task in Corel PHOTO-PAINT. A macro is the better choice if you want to write the code
that is required to carry out the task (by using VBA or VSTA), while a script is the better choice if you want to record the steps that are
required to carry out the task (by using Corel SCRIPT).
This section contains the following topic:
“Working with macros” (page 529)
“Working with scripts” (page 534)
Working with macros
You can save time by using a macro to automate a series of repetitive tasks. A macro lets you specify a sequence of actions so that you can
quickly repeat those actions later.
You don’t need any programming experience to use macros — in fact, the basic tools for working with macros are available within the
main application window. However, if you want to have more control over your macros, you can use the following built-in programming
environments:
Microsoft Visual Studio Tools for Applications (VSTA) — the successor to VBA, and an excellent choice for developers and other
programming experts. VSTA provides the tools and features that you need to create the most advanced macro projects.
Microsoft Visual Basic for Applications (VBA) — a subset of the Microsoft Visual Basic (VB) programming environment, and an excellent
choice for beginners. You can use VBA to create basic macros for personal use, but you can also use it to create more advanced macro
projects.
For detailed information on the differences between VBA and VSTA, please see the programming guide on the Developer area on the
CorelDRAW community website.
531


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Corel Photo-Paint X8 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Corel Photo-Paint X8 in the language / languages: English as an attachment in your email.

The manual is 25,82 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info