0% found this document useful (0 votes)
169 views

Using Existing VBA Macros

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. To use these files, you need to go to Visual Basic Editor (VBE) first.

Uploaded by

farhaan07
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
169 views

Using Existing VBA Macros

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. To use these files, you need to go to Visual Basic Editor (VBE) first.

Uploaded by

farhaan07
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Using existing VBA macros

There 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.
[ General VBA Articles | Using VBA with Corel Applications | Oberon Home
Page ]
Copyright © 2004 by Alex Vakulenko. All rights reserved.
This page was last revised on 02/10/04.

1. Copy the macro file *.gms to the folder GMS. Usually located in C:\Program
Files\Corel\CorelDRAW Graphics Suite 14\Draw\GMS.
Instead a folder Program Files macro file *.gms can be copied to:
if Windows XP - C:\Documents and Settings\YourName\Application
Data\Corel\CorelDRAW Graphics Suite X4\User Draw\GMS\
if Windows Vista - C:\Users\YourName\AppData\Roaming\Corel\CorelDRAW
Graphics Suite X4\User Draw\GMS\
2. Start or restart the CorelDRAW.
3. Select in the Menu Bar: Tools-Customization...
4. In the opening Options select: Customization - Commands.
5. In the drop-down list select: Macros.
6. In the list of installed macros, search for the macro
7. In the Appearance tab:
− In the Caption field – you can adjust the name of the macros or to set it;
− In the Image field – you can draw a button, or select from preinstalled,
clicking on Import.
− Button Files ... allows you to import a picture.
8. Drag the macro you want from the list to the toolbar and click OK
9. If the file of macro has extension *. exe, run it and follow the messages. Macro,
and additional components will be installed in the correct folder. Then follow
paragraphs 2 to 8.

You might also like