![]() |
Macro's In WordPerfect Homepage for tips and tricks for |
![]() |
List of all my WordPerfect Tips Pages
Try Corel's Knowledge Base
(More help for WordPerfect or Quattro Pro)
Creating Macro's
Font Changing in Macro's
"Help" on Menubar/Toolbar
Line Numbering with Macro creation
Macro's on MenuBar
Quick Copy with a macro
QuickMacro for those quick repeated jobs
Run a macro each time WP starts
Trigger a Macro before printing
The easiest kinds of macros to make are recorded macros. This is where you tell WordPerfect to sit up and pay attention while you type and use various features. Here are the steps you should keep in mind when you create any macro
1.Prepare for the macro by figuring out what you want the macro to do and by knowing what steps are necessary to do it. You should also have the current document set up the same way the document will be when you use the macro.
2. Name the macro by choosing Tools, Macro, Record to bring up the Record Macro dialog box, then typing a name for the macro. The name should be eight letters or less, with no spaces--just like naming a document, but without an extension. You'll need this name whenever you want to use the macro. Choose Record and the macro begins recording
3. Show the macro what to do by performing the exact actions you'll want to repeat another time.
4. Stop recording by choosing Tools, Macro, Record
Not all macros are recorded, however. The ones that do really cool stuff are usually typed in regular document windows. For example, most of the macros you see in this magazine are created by going to a blank document window and typing the commands shown in the figure. The great thing about typing these macros is that you don't actually have to understand what all the commands do in order to use the macro. Just type the text as you see it (once in a while the article has special instructions on how to create part of the macro--be sure to follow them), follow the instructions in the article for using the macro, and it ought to work for you.
Choose File, New. Select the template you want to set up the macro trigger in. If you want this trigger to be used for most of your documents, select your default template (standard).
Choose Edit Template from the Options pop-down menu.
From the Object Type: pop-up button, select Macros on Disk.
In the Source: text box, type the name of the macro you want to use or choose the file.
Choose Copy to copy the macro into the template, then Close.
Next, set up the trigger so the macro plays when the document is printed. Choose Associate from the Feature Bar. Select Triggers and from the List: list box, choose the event that you want to trigger the macro, such as Pre Print (meaning right before the document is printed).
From the Macros: drop-down list, select the macro you just copied to the template. Choose OK
Choose Exit Template, then choose Yes to save the changes. If you use the default template, the macro automatically plays. If you added the macro to any other document, you will first need to select that document.
When typing macro's, prepare a blank document for typing the macro then choose Format, Line Numbering, Numbering On and deselect Restart Numbering on Each Page. These numbers will not affect the macro. It just makes finding your errors easier.
To have a macro change the font size and style, add the following:
Size change - FontSize (FontSize: 8)
Font change - See Help, Macro's Programming Commands, Font
Change the shortcut properties in the command line that runs WP. Add a space then type /m-macroname (where macroname is the name of the desire macro. If the macro is not in WP's macro directory, you will need to add the entire path along with the macro name.
Add the QuickMacro Play and QuickMacro Record buttons to the macro tool bar.
When you want to quickly and repeatedly have the same text typed/copied, Click on the QuickMacro Record button, type the text, just once!. Click the QuickMacro Record button again to stop the recording. Whenever you want to have that text typed, just play the QuickMacro Play button
Use your QuickMacro button (add it to your Macro Toolbar if you don't already have it). This is
a great feature when you are constantly typing the same hard to spell word, over and over in the
same document. Or even use it to stop yourself from needing to use your mouse to click, click,
click, click. Just record all those clicks with the QuickMacro button. Then just click once to get
what/where you want just like a hotkey
This gem of a tip I found in the WordPerfect magazine. Especially if you get Disk-Of-The-Month with all those added macro's.
Have a lot of macro's you've created? Well I sure do. Some I only use rarely, and those are the ones that are easily forgotten. the ones I use frequently, I place on my Toolbar. But what about the others? You can add to your MenuBar, right next to the Help (if you want). Then add all those macro's right to the MenuBar. No more clicking around to find it, then pressing play to make it run.
All you have to do is click on Macro (on your MenuBar) then click on the macro you want and it runs.
Here's how:
Right-click on the MenuBar and select WPWin7 Menu. (If you have 6.1/6.0, you will need to choose Create and title your MenuBar first. Then use that MenuBar to edit.) Next click on Edit. On the right side you'll see a small white rectangle box. Click and hold on that box and drag it to the MenuBar, next to Help. Now double-click on the new item that's called Menu. Type a new name for it, such as Macro's and give it a description such as Unfrequent Macro's, or Seldom used Macro's, or maybe even, Uncommon Macro's. What ever you like will be fine.
Now, Click on the Macros tab and select Add Template Macro.
Select a macro you want to add and press Select. You're new macro will first be listed on the MenuBar by itself. Just click on the new item and drag it to the left to Macro's and then down to the small gray box that will appear.
If you didn't have anything listed in the Add Template Macro list that you want to add, then click on Add Macro. Go find the macro that you want to add and double click on the file. When asked if you want to save it with the full path, choose Yes.
Got a problem because the names of the macro's are to long? No problem. With the Menu Editor dialog box still showing, move your mouse to the Macro's menu and down to the macro name you want to change and double-click. Then change the title and press OK.
You can move these around at anytime or even add separators in-between different types of macro's. It's just like customizing a Toolbar.
Can't find the help menu for Macro's under the Help? Well you can put it there.
Here are 2 options you can have. 1: to place it on your Menubar, or 2: place an icon on your Toolbar.
1. Menubar: First you need to create a new Menu bar (see New Menubars for directions), or edit your personal Menubar if you have already created one.
Now make sure that you are on your new Menubar by right-clicking on the Menubar and selecting your personal Menubar
Right-click on the Menubar and select Preferences, Edit.
Change the top box for Feature categories: from File to Help. Then click once and hold on Macros... Drag this up to the Menubar for Help until the help menu actually drops down for you to see. Then position the "hand" down to any part on the help list where you want the item to be placed. Click on OK, then Close.
Next time you need a little help for your macro's, you'll have the Macro Help available quicker than going to Help, Help Topics, Contents (tab), Macros, Macros Programming.
2. Toolbar: Right-click on the Toolbar and select a Toolbar where you want the icon. Right-click again on the Toolbar and select Edit.
Change the top box for Feature categories: from File to Help. Then click once and hold on Macros... Drag this over to the Toolbar and drop it where you want. Click on OK.
If you want to change the picture, right-click on the new icon, select Customize, Edit. Now create a new picture for the Macros Help icon. Click on OK 3 times and you're back to WordPerfect.
New Tips? E-Mail me at: Carney Creations
This page maintained by: Tracy
@ Carney Creations
Disclaimer: I am only responsible for the actions/inactions of myself.
All other use of the tips in connection with my home page and links are the sole responsibility of the end-user.