Follow

Accessing Macro Tools and Creating Macro Project in CorelDRAW


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 dont need any programming experience to use macrosin 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 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.

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 kinds of macro projects.

To access the macro tools

Display the Macros toolbar

  • Click Window Toolbars Macros(A check mark next to the command indicates that the toolbar is displayed)

Display the Macro Manager docker


Do one of the following:

  • Click ToolsMacrosMacro Manager
  • Click the Macro Manager buttonon the Macros toolbar

Display the Macro Editor

Do one of the following:

  • Click Tools Macros Macro Editor
  • Click the Macro Editorbuttonon the Macrostoolbar
  • Right click Visual Basic for Applications in the Macro Managerdocker, then click Show IDE.

Display the VSTA Editor

  • Click Tools Macros VSTA Editor

To create a Macro Project

In the Macro Manager docker, do one of the following:

  • Click Visual Basic for Applications in the list, click New, and then click, New Macro Project.
  • Right click Visual Basic for Applications in the list, and then click New Macro Project.

You can also

Open (or "Load") a Macro Project


Do one of the following:

  • Click Visual Basic for Applications in the list, click Load, and then choose the project.
  • Right-click Visual Basic for Applications in the list, click Load macro project, and then choose the project.

Rename a Macro Project

  • Right-click the project in the list, and then click Rename.

Copy a GMS-based macro project

  • Right-click the project in the list, click Copy to, and then choose the target location for the copied project.

NOTE: You cannot copy a document-based macro project. Such projects are stored within a document and cannot be managed separately from that document.

Display or hide all modules in the list

  • Click the Simple mode button

Add a module to a macro project


Do one of the following:

  • Click the project in the list, click New, and then click New module.
  • Right-click the project in the list, and then click New module.

Edit a module in a macro project

Do one of the following:

  • Click the module in the list, and then click the Edit button.
  • Right-click the module in the list, and then click Edit.

Rename a module in a macro project

  • Right-click the module in the list, and then click Rename.

Delete a module from a macro project

Do one of the following:

  • Click the module in the list, and then click the Delete button.
  • Right-click the module in the list, and then click Delete. .

Close (or unload) a GMS-based macro project

  • Right-click the macro project in the list, and then click Unload macro project.

NOTE: You can close a document-based macro project only by closing the document in which it is stored.


*Some macro projects are locked and cannot be modified.


Keywords: 000013898, X5, X6,


 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.