Using existing VBA macrosThere are some VBA macros available for CorelDRAW 10-12 (for example, click here). However not everybody knows how to use them. The following article should help you get started.
Some macros come as downloadable GMS files (files with .gms extension). To install and use these macros, just copy the GMS file into GMS subfolder under Draw or Photopnt folders. If CorelDRAW suite is installed into C:\Program Files\Corel\Graphic10, then you need to copy the GMS file into C:\Program Files\Corel\Graphic10\Draw\GMS or (...\Graphics10\Photopnt\GMS) folder:
Then just restart CorelDRAW or Photo-Paint (quit the application and start it again).
Now you are ready to play macros you've just installed. Go to Tools>Visual Basic menu and click on "Play..." menu item. You will see the "Play macro" dialog:
Select the GMS file from "Macros in" dropdown list and you will see the list of available macros. Pick the macro you want to run and click the "Run" button.
Sometimes macros can come as files with extensions .bas, .frm, .frx, or .cls. To use these files, you need to go to Visual Basic Editor (VBE) first. Go to Tools>Visual Basic menu and click on Visual Basic Editor menu item, or just hit Alt-F11. You will see the VBE window:
Select any of the available GMS projects in the Project Explorer window (you can find it at top left of the above image). Then go to File>Import menu command or hit Ctrl-M. Pick each .bas, .frm, or .cls file and import them into the project. Now you can go to the Play macro dialog in CorelDRAW/Photo-Paint to run the new macros.
Copyright © 2004 by Alex Vakulenko. All rights reserved.