Full Version: New Folder

From: Stunt Engraver (DGL) [#1]
 19 Jul 2006
To: ALL

Thank you to Carl Sewell and Shaddy for creating the helpful CorelDraw macros, which for those of you not familiar with the term, are a set of programmed actions, that automatically carry out a number of steps that would ordinarily have to performed manually.

It was suggested that, instead of the macros being buried within several CorelDraw discussions, that we have a place where they'll easily be found.

This will be that place. :-) 

Thanks again, Carl and Shaddy.

From: Carl (CSEWELL) [#2]
 19 Jul 2006
To: ALL

Thanks David.

Okay, here's the first one. USE AT YOUR OWN RISK! It has been successfully installed and executed in version 12 of CorelDraw.

It's a simple character counter. If you charge by the letter, this macro will verify your count. Select the text that you want to count the letters in and then run the macro. A pop-up window will display the number of characters found. It does not count CR (carriage returns) or LF (line feeds).

And here is information on installing the macro and also adding a macro as command button to your toolbox toolbar (or where ever you'd like it).

It's fairly easy to implement an existing macro

- Make sure there are no copies of CorelDraw running.
- Copy the GMS file to the CorelDraw GMS folder, usually: C:\Program Files\Corel\Corel Graphics 12\Draw\GMS
- Start Corel and go to Tools> Visual Basic > Play
- Towards the bottom of the pop-up window you'll see "Macros in:". Select the arrow down at the end of the text box on that line.
- Click on the macro you'd like to run.
- The macro name will be placed in the text box under Macro Name.
- Click on Run.


You can also add the macro as a command on a toolbar, which isn't the easiest thing to do, but we're talking minutes and not hours to implement. I have a flyout specifically for macros. It's fairly straight forward and once you do it, it is fairly intuitive. To add a command button for a macro to the Toolbox toolbar:

- Right click anywhere on the toolbox toolbar and follow Customize> Toolbox Toolbar> and then click on Add a new command
- In the new window, just below the word Command (top center of the new window) is a text box with File. Click on the down arrow and find and select Macros (it's at the top of the list).
- In the text list box below, find the macro that you want to add as a command button and click on it ONCE.
- You can add a tool tip (see box to the right) under the GENERAL tab.
- Or use a shortcut key for it under the SHORTCUT KEYS tab
- Click on the Appearance tab.
- Here you can change the ICON by IMPORTing one or drawing your own!
- You may want to change the caption (above the ICON) to something simpler than what is displayed.
- Once you get all that done (and you can come back and modify this later), left click (hold down the mouse button) on the macro name in the list box (to left of the tabs section, where you first clicked on it above) and drag it to the toolbox toolbar. Or wherever you want.
- You can undo the command button by dragging it back to where you dragged it from.
- You can go back and modify the icon or tooltip without having to drag it to the toolbar again.

The macro and the associated code is FREE to use and distribute as you please. If you make any money off of it, please send at least half to me. ;^)

{David, should this be a new thread, with "Count Characters" or "Count Letters" as the Thread title?}

EDITED: 19 Jul 2006 by CSEWELL


Back to thread list | Login

© 2024 Project Beehive Forum