Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2008 by Barry MacDonnell. All Rights Reserved.

Page updated June 6, 2008
WordPerfect Tips
Main tips page | Browse tips
Three easy ways to play macros, load programs, type keystrokes, or use built-in WordPerfect features (Part 1)
See Part 2:
Assigning a macro, feature, program, or string of keystrokes to a key or key combination
See Part 3:
Customize your menu - How to add new menu choices or rearrange existing ones

How to create a toolbar button to play a macro, load a program or file, use a built-in WordPerfect feature, or play back keystrokes

STEP 1
    • Right-click on the appropriate toolbar or property bar -- for example, the main toolbar just below the main menu, or the Header/Footer property bar that appears while you are inside a header or footer, etc. Then left-click on Edit from the drop-down context menu that appears. The small Toolbar Editor window will open.
    • Alternative: Click Tools, Settings, Customize. Under the Toolbars tab, choose the toolbar from the list by clicking on the name in the list. Click the Edit button to open the Toolbar Editor.
STEP 2

Use one of the following procedures:

    • To have the button play a macro:
      • Click on the Macros tab, then click the Add Macro button.
      • From the Select Macro window, choose the macro from the file list, then click Select.
        • Usually, you can answer the "Save macro with full path?" question with "No" (unless you deliberately want to store the macro in a folder other than the Default or Supplemental folders shown in Tools, Settings, Files, Merge/Macro).
      • A small gray "cassette" button appears on your toolbar. Right-click on it an choose Customize. Give the icon a Button Text name of your choice (also see the second Tip below) and a Quick tip name of your choice.
        • If you want to customize the button's icon, click on the Image Edit button, then click Clear to remove the default image. Then use the tools to create your own custom icon. (Or you can simply edit the existing icon to add something or some color to make it unique. For the artistically challenged, here are some more tips to make the button unique.)
    • To have the button start a WP feature:
      • Under the Features tab, scroll down in the "Feature categories" drop list to choose the appropriate category, such as File, Edit, View, Insert, Format, Tools, etc.
      • In the lower Features list, choose one or more features (one at a time) you want to assign to a button, and click on the Add button. A pre-defined icon appears on your toolbar for each feature chosen.
    • To have the button play an external program or load a file:
      • Method 1: Click the Programs tab, then the Assign Program to Key button. Locate and choose the exectuable program to play.
      • Method 2: Drag-and-drop a program (or macro) shortcut from your Windows deskop to the WordPerfect toolbar or property bar. Be sure it's a shortcut (it will have a small arrow on the icon), left-click on it, and drag it to the WordPerfect toolbar or property bar (note that the latter may be a context-sensitive bar, so it may not always be visible). To reposition it, just hold down the <Alt> key and drag the icon to a new location. To remove it later, just hold down the <Alt> key and drag the icon from the toolbar or property bar.
      • Tips:
        • You can use this method to load an existing file (such as a list of telephone numbers) from your disc. Alternative: Drag the file from its directory/folder in Windows Explorer or My Computer to the WordPerfect toolbar.
        • For instructions on loading a new document based on a custom template, see "Load a letterhead - or any other document based on a custom template - with a mouseclick or keystroke" here. Also see "Automating WordPerfect Templates" here.
    • To have the button insert text:
      • Click the Keystrokes tab -- the same procedure shown in Step 3 in "Assigning a macro...to a key..." -- but you would assign the keystrokes to the toolbar button.
STEP 3
    • You can drag the new button into another position (either on the same toolbar or any other toolbar showing onscreen) while the Toolbar Editor is still on screen. (You can also drag it from the toolbar to delete it.) When done, click OK all the way back to the document window.

Notes

Tips

  • To modify a button's default icon (the gray audiocasette image), see here.
  • If you put an ampersand ("&") in the Button Text, the letter that folllows the ampersand can be used with the <Alt> key to play the macro, in addition to clicking the toolbar button itself. For example, if the Button Text is something like "Fax this document," and you change it to "&Fax this document," then <Alt+F> will play the macro, the same as if you click the button with your mouse. Note that, in this example, <Alt+F> would normally bring up the WP File menu; now it will not. So, to bring up the File menu, simply press and release the <Alt> key, then press the <F> key. [Thanks to P. Wolfgang Deiminger for the ampersand tip.]
  • To delete a button from the property bar (or a toolbar) when you are back in the document window, simply hold down the <Alt> key and drag the button off the bar.
  • You can move or copy an existing button from one toolbar to another (assuming both are visible). To move it, hold down the <Alt> key while you drag the button to the other toolbar. To copy it, hold down the <Ctrl> and <Alt> keys while you drag it. [Most people probably will want to copy the button, not move it, so that the source toolbar remains the same.]