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

Barry MacDonnell's
Toolbox for WordPerfect

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

Page updated Jan 27, 2012
WordPerfect Tips
Main tips page | Browse tips

QuickWords

See also -

Overview

In WordPerfect 8 and later versions, you can use a QuickWord to instantly insert blocks of material.

QuickWords are not just for words: There are many things for which you can use a QuickWord. For example, you can insert -

If you need to use the same material again in the current document or future documents, consider using QuickWords to speed up your work and help eliminate typing and formatting errors.

Basically, a QuickWord is a small text abbreviation you create — a few unique, easy-to-remember characters, typically preceded by a special character such as a backslash (e.g., \name, \logo, etc.) or by any other rarely used character (e.g., ~joe or `123).

QuickWords expand automatically into whatever you have previously assigned to the QuickWord. (This assumes you have set them to do so. See "How to create, use, and revise QuickWords" below.) When you type the QuickWord abbreviation into a document and follow it with a space, tab, or hard return (i.e., <Enter>) the assigned material is immediately inserted as a block (i.e., not character by character), similar to WordPerfect's Insert, File feature.

[Tip: You can optionally expand all QuickWord abbreviations in the document at once at a later time with a Corel shipping macro; see here. Or you can expand just a single QuickWord using a macro assigned to a menu, toolbar button, or shortcut key; see here or the example in the Notes below.]

QuickWords are stored in their own special QuickWords template, so they are available in any document. (Each WordPerfect version has its own QuickWords template. See below for more on where this template is stored, how migrate its entries, how to fix it, etc.)

How to create, use, and revise QuickWords

To create a QuickWord . . .

This is easier to do than it might appear...

  • First set up the material you wish to quickly insert later in the current (or future) document. This typically includes a contiguous block of text — even several long paragraphs — along with any desired WordPerfect formatting or graphics, but it can be just a formatting element such as the codes for a special watermark, footer, table, etc. This is the material the QuickWord will insert in a document any time you need it.
    • It is sometimes useful to do this in a new, blank document (unless you also want to also "capture" some material in the current document). For example, you could type several "boilerplate" paragraphs, complete with formatting. Or you could set up your letter's entire closing (even with a scanned graphic signature "anchored" to the closing's paragraph; see the tip below). Use any styles or other formatting you wish, even tables or columns.
    • Caveat: If you do this while editing a custom template (.wpt), and proceed with the next steps to create the QuickWord, the QuickWord will be stored in that template, not in the special QuickWords template. Thus it will not be available in other documents created from different templates, such as the standard default template. While storing QuickWords in a custom template might be useful in certain circumstances, such as in an automated template, most users probably should set up the QuickWord material in an ordinary document or in a blank document, not inside a custom template, and proceed with the next steps. (If you want to do it anyway, see the tip below.)
  • Select the text, graphics, and any related codes using the Reveal Codes window to ensure you capture everything for the new QuickWord.
    • Selection may be easier in Reveal Codes if you place the insertion cursor just to the left of the material -- particularly any relevant codes — and then hold down the <Shift> key while you press the <Right Arrow> key to select the material. Some find this easier and more accurate than using a mouse to select text with adjacent codes
    • If you are selecting format codes, you may need to include any "Off" codes as well as "On" codes. Some formatting in WordPerfect is achieved by bracketing the material by an On/Off code-pair. Bold, Italics, Highlighting, and similar formatting are examples of this. Be sure to select both codes of the code-pair.
  • Click Tools, QuickWords, and give the new QuickWord a name (in the first field, just above the drop list of existing QuickWords).
    • You should precede the QuickWord's name (technically, an abbreviation) with a backslash (e.g., \draft or \copy) or other unique and little-used character (such as a tilde, ~) to help prevent possible confusion with the same characters used elsewhere in the document, when you type the QuickWord. Preceding characters are not required but they are highly recommended.
  • Click on Add Entry to add the QuickWord to the list.
  • Click the Options button and select "Expand as text with Formatting."
    • From WordPerfect's Help: "When you expand text as plain text, you can insert a QuickWord in a document other than the one where it was created, and the QuickWord text will look the same as the other text in that document. When you expand text as formatted text [as recommended here], you can insert a QuickWord in a document and include the formatting and graphics that appeared with the QuickWord when you created it."
    • Important: If you are using WordPerct 10 or later version, and choose the "Expand as plain text" option, be sure to aslo enable the new feature available in those versions in Tools, Settings, Environment: "Use WordPerfect 9 text selection." If this setting is disabled (i.e., not ticked) during QuickWord creation you might find that some of your newly created QWs expand with an extra hard return in them. If this happens, see Footnote 2 here about this bug and how to work around it.
  • If you want the QuickWord to expand as you type it (the typical case), make sure the "Expand QuickWords when you type them" box is checked (ticked) at the bottom of the QuickWord dialog box.
To use a QuickWord . . .
  • Type the QuickWord — plus a <space> character, or a <Tab>, or press the <Enter> key — on the page where you want it to begin. The abbreviation should expand in place. (If it doesn't, see the Notes and tips below.)
    • In some cases you might want to delete the extra <space>, <Tab>, or hard return code ([HRt]) that was used to expand the QuickWord.
To revise a QuickWord . . .
  • Either (a) make revisions directly in the document that has an expanded QuickWord; or (b) open a new blank document and type the QuickWord; when it expands, make your revisions to the expanded material. (Reveal Codes can help in either scenario.)
    • The second option might be easier to work with if you have a complex QuickWord, since it isolates the material from any other surrounding text and format codes.
  • Delete the old QuickWord in Tools, QuickWords.
    • Alternate: You can skip this step and create a new abbreviation (next step) if you want to keep the old one.
  • Select the entire block of revised material and create the new QuickWord. (Again, Reveal Codes can help here.)

Notes and tips

Why don't my QuickWords work?

1. If you have not checked (i.e., ticked) the "Expand QuickWords when you type them" box at the bottom of the QuickWord dialog, the QuickWords won't expand. However, you can expand all QuickWords at once by playing the EXPNDALL.WCM shipping macro, usually located in your default or supplemental macro folder (see Tools, Settings, Files, Merge/Macro for these locations).

2. QuickWords will not expand if you have a macro toolbar or a merge toolbar showing on any open document (even if empty). You can run the macro Abbrev.wcm to force a QuickWord expansion immediately. You can also use the EXPNDALL.WCM macro to expand all QuickWords later.

3. QuickWords (specifically, their abbreviations) are "words" and therefore need to be separated from preceding characters with a space, tab, indent, etc. Otherwise they will not normally expand when you follow the QuickWord with a space, tab, or hard return.

HOWEVER, you can work around this if you need to produce a QuickWord expansion in the middle of a string of characters, such as in a mathematical formula.

You will need to (a) create the QuickWord as described above (using the "Expand as text with Formatting" option), then (b) create a one-line macro with this command in it:

AbbreviationExpand (AbbreviationName: "\2"; Template: QuickWords!)

In this example, the QuickWord abbreviation "\2" was previously created (but without quotes) to produce a superscripted 2. You can, of course, use any QuickWord in the macro command, as long as you use the syntax shown and specify the QuickWord abbreviation's name in quotes.

  • To copy this macro code to your WordPerfect program, see here.
  • You can then assign this macro to a keystroke combination, toolbar button, or menu, as described here. This will make it very easy to use in a document.
  • For additional macro code to automatically delete any "bracketing" [Font] and [Font Size] codes that might be imported with the QuickWord (and thereby conflict with the current font and size in effect at that location, see Footnote 1 below.
  • See also the tip below which uses a more robust macro (ReplWithQW) to expand multiple instances of a QuickWord in a document, after the final draft is completed.

4. All your QuickWords are stored in a special template (see "Managing and troubleshooting your QuickWords" below). They are not stored in the document (.wpd) you are working on at the moment. Rather, they are added to the QuickWord template when you exit the program. Like any computer file, this file can be damaged, so it is wise to back it up frequently.

Page Top

Miscellaneous tips for using QuickWords

See also "Managing and troubleshooting your QuickWords" below.


Red checkmarkUse a leading "special character" in QuickWord abbreviations.

If you click on Tools>QuickWords, you will see that the samples shipped with some versions of WordPerfect are preceded by a backslash [\]. This is not essential, but if there is any chance that your QuickWord abbreviation may also be acceptable as a word or something that QuickCorrect might recognize, you are advised to use a leading '\' (or similar character, such as the tilde [~]) to avoid expansion of the abbreviation. For example, don't use 'BP' as the QuickWord for 'The patient's BP was normal'. But you could use '~BP' or even 'PBP,' if it is an abbreviation that is unlikely to be automatically corrected by QuickCorrect. [Thanks to Charles Rossiter for this tip.]

Red checkmarkRecord a macro to play a QuickWord:

  • Click on Tools, Macro, Record;
  • give the macro a name;
  • position the cursor in the document where you want the QuickWord to expand (assuming you have set QuickWords to expand as explained above, under "How to create and use QuickWords");
  • select the QuickWord with Tools, QuickWords;
  • click Insert in Text;
  • stop the macro recording with the Stop button on the macro toolbar.
  • The macro can then be assigned to a menu, toolbar button, or shortcut key, as explained here.

Red checkmarkCreate matching envelopes for your letterhead.

If you have WordPerfect8 and later, you can use a QW to insert your custom return address (including different font sizes and a graphic logo) in the Envelope dialog. See here.

Red checkmarkUse a QuickWord to stamp a document with DRAFT, COPY, etc.

Red checkmarkAutomatically add your scanned signature to a .WPD document.

  • Scan a printed document that contains your signature. Use a high resolution for the scan.
  • Clip ("crop") just the signature from the scanned image (probably a .BMP or .JPG image) with any graphics program (WordPerfect Office's Presentations should do the job, or use something like PaintShopPro), then insert it between previously typed closing lines of text ("Sincerely...").
  • Position the graphic signature, and then anchor it to "Character" or "Paragraph" (not "Page") by right-clicking the image and choosing Position. (It will then move with the closing if you add or delete text later.) Right-click again and choose Wrap, Behind text. You can make final adjustments by right-clicking the image and choosing Select Box, then use the mouse to drag the image; or you can right-click the box and use the Position choice to enter numeric values. When finished positioning the box, click outside it to deselect it.
  • In Reveal Codes, select both the closing lines of text and the signature's graphic code, and create a QuickWord from them, as described above.
  • From that point on, typing the QuickWord will insert both the closing and the signature -- all in one step.

Red checkmarkSet repeating tabs with a QuickWord.

  • For example, to quickly set all tabs 0.25 inches apart, click Format, Line, Tab Set.
  • In the Tab Set dialog, set the Tab type (usually, Left), the Tab position (0.25" from the left margin), and check the Repeat box and set it to every 0.25". Click on Set to return to the document.
    • (Alternatively, you can also record these first two steps in a macro and assign the macro to a toolbar button, menu, or keystroke.)
  • Finally, follow the directions above to select the new [Tab Set] code in the Reveal Codes window and assign it to a QuickWord, such as "\25".
  • Whenever you need the new settings, simply type "\25" (without quotes) followed by a space and the new tabs will be set. Backspace to delete the extra space.
  • See also TabSet25, a macro that sets left tabs every 0.25 inches, out to 9.75 inches (the WordPerfect limit).

Red checkmarkUse text and counters with a QuickWord. [For more on counters see here.]

You can automatically and sequentially number items at the end of a phrase — and you can even insert a second type of sequentially numbered list (dark red items below) into the first list (dark blue items below). This technique works like an outline, where deleted or inserted items cause automatic renumbering of subsequent items. WordPerfect will keep the lists properly — and separately — numbered.

For example -

Interrogatory No. 1.
Did you ever ....

Interrogatory No. 2.
List the people within your division who ...

Interrogatory No. 3.
State where the manager told ....

Production Request No. 1.
Produce all records in the ...

Interrogatory No. 4.
Do you claim that Mr. X never ...

Production Request No. 2.
If your answer is yes ...

And so forth.

Here's how:

1. Open a new, blank document. Create a single-level counter for each list item (e.g., one for Interrogatory items and one for Production items) with Insert, Other, Counter, Create. Enter a name for the counter in the Create Counter Definition dialog that pops up, and click OK. When finished creating all counters, click Close to exit from the Counter Numbering dialog.

2. Then, in the main body of the document, type the leading text phrase and a space ("Interrogatory... "), then click Insert, Other, Counter. Choose the new, appropriate counter from the list and then click Display in Document. This takes you back to the main document. Make sure the insertion point is to the right of the new code in Reveal Codes. Then click Insert, Other, Counter, Increase.

You should now have two codes in the document,

   [Count Disp][Count Inc] — in that order.

The idea is to make WordPerfect display the number, then (internally) increment it for any counter number that may follow later in the document.

Add a space, colon, hard left indent, etc., as desired to separate and/or format the text that will follow the two counter codes.

3. Here's the part that automates everything:

Make a QuickWord out of the text phrase and the two codes (and any following spaces or codes) by using Reveal Codes to place the cursor just in front of (i.e., to the left of) the text phrase, and then use <Shift>+<RightArrow> keys to move the cursor to just after (to the right of) the end of the phrase and codes.

Now, with the phrase and counter codes and any formatting codes selected, click on Tools, QuickWords. Give the QW an easy-to-remember abbreviation, such as "\Int" (without quotes) for "Interrogatory."

4. Repeat steps 2 and 3 for the other list item. Use the other counter, of course, and give the QuickWord a different name (e.g., "\Prod" [without quotes]).

Note that when you create QuickWords, you should make sure that the "Expand QuickWords when you type them" box is enabled, and the Option button's "Expand as text with formatting" is selected.

Now, when you need the items, just type the QuickWord for them, plus a space, tab, or hard return. The QW will expand and the counter will number the item. You can add or delete a counter item, or insert a counter of the second type between a sequence of the first type, and WordPerfect will keep them properly — and separately — numbered.

Red checkmarkGlobally replace text or symbols with QuickWords, then expand them as needed.

Assuming you have disabled (un-ticked) the box, "Expand QuickWords when you type them" in Tools, QuickWords, you can use the shipping macro, EXPNDALL.WCM, to expand them all at once. (You should find this macro in one of the folders listed in Tools, Settings, Files, Merge/Macro. If it is located there, simply type "EXPNDALL" in the File name field in the dialog box that appears when you click on Tools, Macro, Play.)

Related tips:

Using Edit, Find and Replace you can first replace an existing character, word, or symbol anywhere in a document with a QuickWord abbreviation (e.g., \MyLogo), then expand all the QuickWord abbreviations throughout the document with EXPNDALL.WCM.

Note: EXPNDALL only works if the QuickWords are individual items and not part of a word; that is, the QuickWord abbreviation must be separated from other text characters. Still, this is a quick way to replace, for example, a text character or number (or a symbol) with a highly formatted item -- such as a math symbol in a different font and size, or a specially formatted corporate or product name — that you have previously created as a QuickWord.

Alternative: For a macro that can find an existing character, word, or symbol wherever it appears in a document and replace it with an expanded QuickWord — all in one step — see ReplWithQW. [Since QuickWords are stored in their own special template, they will be available in all documents for the same version of WordPerfect on the same system. See the next section for information on migrating your QuickWords to another version of WordPerfect.]

Red checkmarkUse a QuickWord where a macro won't work.

Some things cannot be recorded in a macro, such as creating custom graphics or text box sizes. They must be hand-coded by a macro writer.

But there is an easy way to insert complicated structures (such as custom text boxes):

Open Reveal Codes and select the structure (e.g., the [Box] code) and create a QuickWord from the selected item. Typing the QuickWord abbreviation later will insert the item at the cursor location. You can even select adjacent format codes and/or text along with the structure itself. A single QuickWord can contain all of these items.

Red checkmarkQuickWords can be stored in custom templates (but...)

Typically, users want QuickWords available in all documents, so when they are created as explained above, they are stored in the user's local QuickWords template.

However, if you edit a custom template and create a QuickWord while editing that template, the QuickWord will be stored in that template — not in the standard location (i.e., the user's QuickWords template).

But...

Although the QuickWord will be available when you load a document based on that custom template, it will not expand in the usual way by typing its abbreviation (at least, in recent versions of WordPerfect). You will need to insert it and expand it with either the Tools, QuickWords ... "Insert in text" button, or with a macro (or a template macro) such as this one (which assumes the QuickWord is named "\2" and it is stored in the custom template which spawns the current document):

AbbreviationExpand (AbbreviationName: "\2"; Template: CurrentDoc!)

Page Top

Managing and troubleshooting your QuickWords

  • Problems with QuickWords?
    • See Notes above.
    • If your QuickWords template file might have become corrupted, here are some things you can try.
      • First, please note that your QuickWords are typically stored in their own special template file (see next item below for the location), which can be renamed/backed up the same way as the standard default template.
      • Second, keep these things in mind:
        • 1. When WordPerfect cannot "see" this special template (usually because it was renamed or deleted), it will then create a new, virgin (empty) copy the next time WordPerfect is loaded.
        • 2. If you have set a new location for your standard WordPerfect default template (the one shown in Tools, Settings, Files, Templates) then the currently active QuickWords template will also be stored in that location, not in the default location mentioned on the Corel page. In other words, you might have more than one QuickWords template on your system, so you should identify the active one before proceeding further.
        • 3. If you cannot find the template file (it has a .wpt filename extension) or the Windows folder seems to be empty, this might be because of a setting in Windows itself. See here.
      • Third, try to repair the current QuickWords template file. You might be able to salvage the old QuickWords template file by repairing it using the methods here.
      • Fourth (an alternative): Try to export/import the QuickWord entries. You might be able to export your QuickWords using the method below, then you can simply delete the QuickWords template file. (Make a back up before deleting the file. WordPerfect will then create a new, virgin one when you next load WordPerfect.) Then import the old QuickWords into the new file.
  • QuickWords template location: 
    • QuickWords are stored in their own special template file, QWnnxx.wptHere, "nn" is the WordPerfect version number (e.g., 8, 9 ... 14, 15, etc.) and "xx" is the language ("EN" for all English language versions). 
    • It is located in the same folder as the WordPerfect default template as shown in Tools, Settings, Files, Template. (Always look in that dialog to see where the currently specified default template is located on your system.) 
    • Tips 
      • Back up your QuickWords template from time to time.
      • Note that if you specify a different folder for the WordPerfect default template (which is the one used to create new, blank documents) in Tools, Settings, Files, Template, then WordPerfect will use that new folder for the QuickWords template, too. If the QuickWords template does not exist in that folder, WordPerfect will create a new, virgin (empty) copy of the QW template the next time WordPerfect is opened. (It will also do this for a missing WordPerfect default template.) You can replace the new virgin, copy with the older version, but it must be named exactly the same.
      • You can copy this file to another computer that is using the same version and language edition of WordPerfect, for use on that computer. Both the version number in the QuickWord template's file name (e.g., 15) and the language code (e.g., US, UK, etc.) must match the new WordPerfect program.
      • You can migrate this file to a different version of WordPerfect. See the next tip, which shows how to preserve the older version's entries by migrating this file.
      • If you cannot find the file or the folder seems to be empty, this might be because of a setting in Windows itself. See here
      • [Arcane tip: QuickWords can also (but not typically) be stored in a custom template as explained here. But this is something users must deliberately set up.]
  • How to migrate your QuickWords to a new version of WordPerfect:

Notes

1. Please review the previous two sections on managing QuickWords.

2. If you want to back up and migrate other program cusomizations, see the main Tips page section on Updating, upgrading, or reinstalling WordPerfect here. The following copy-and-rename migration method is recommended for QuickWords only.

Here's how to migrate your existing QuickWords to a new version of WordPerfect. (If it's the same version and language edition of WordPerfect, you can simply replace the new QuickWords template with the old one, since the file's name will be exactly the same. In this case you can skip step 5 below, which renames the old QuickWords template.)

    • Step 1. The QuickWords template is normally found in the same folder as the standard WordPerfect default template, so in the new version of WordPerfect click on Tools, Settings, Files, Templates tab and make a note of this location. This will also be the new "target" location for the older QuickWords template.
    • Step 2. Close WordPerfect. Use Windows Explorer (or My Computer) to find -- and navigate to -- the location of the new QuickWords template file (see previous tip).
      • If you cannot find the file or the folder seems to be empty, this might be because of a setting in Windows itself. See here.
      • Note that if you have set a different location for your standard default template (as shown in Tools, Settings, Files, Templates) then the QuickWords template will be stored in that location, not the default location mentioned on the Corel page.
      • [Arcane tip: QuickWords can also (but not typically) be stored in a custom template as explained here. But this is something users must deliberately set up.]
    • Step 3. Back up the new QuickWords template by renaming it: Right click on this new QuickWords file and select Rename. (For example, if your new version is WordPerfect 15 the file probably will be QW15EN.WPT for English versions. (See the previous section on template names for various editions.) To the end of the name add .NEW and hit Enter to rename the file. This will preserve the new version, which you can always restore later by simply removing the .NEW filename suffix.)
    • Step 4. Next, find the old QuickWords template (e.g., QW12EN.WPT for WP12) and copy this file to the same folder that contains the new version of QuickWords. (If the old file is located on a different computer or in a non-standard folder, use the same techniques in Step 1 and Step 2 on that computer to locate and navigate to that old version of QuickWords, so that you can copy it.)
    • Step 5. Now you need to rename the old (copied) file so that the new version of WordPerfect can recognize it: Right click on the old QuickWords file (e.g., QW12EN.WPT) and select Rename. Type the new version file name of the QuickWords file and hit Enter to rename the file. (For example, if your new version is the English edition of WordPerfect X4 you would type in QW14EN.WPT. If it is WordPerfect X5, you would type QW15EN.WPT.)
    • Step 6. Launch the new version of WordPerfect. Click on the Tools menu and select QuickWords to confirm that your QuickWords were migrated to the new version. Verify you have checked the "Expand QuickWords when you type them" box at the bottom of the QuickWord dialog; otherwise the QuickWords won't expand automatically.
  • Use a macro to export / import QuickWords: See Charles Rossiter's QWManage.wcm macro, downloadable from the Other Authors page here.) It is designed to -
    • "A. Create a 2 column table listing all QuickWords abbreviations and their expansions defined in the current QuickWords templates.
      B. Restore QuickWords and their expansions from the output of option A created in a table with 2 columns of abbreviations and expansions."
    • For those on a network who wish to "roll out" a master list of QuickWords to each user:
      • Each user has their own QuickWords template on their own system. So --
      • [Quoted from a post by Charles Rossiter, replying to a user who needed to replicate a master list of 50 QuickWords on several networked computers:] "When you run the [QWManage] macro, it creates a 2 by nnn table of QuickWord abbreviations and their expansions. You could create such a table for your 50 desired QuickWords. If you now copy your master QuickWords table to the users' default template folders, then you can run QWManage.wcm and all your 50 desired QuickWords will be added to those already available to each user personally. If it happens that a user has a QuickWord with the same abbreviation as one of your set of 50, then you will be warned to choose to save the original or the new QuickWord."
  • How to save your QuickWords to a text file (quoted from Corel's KnowledgeBase).
    1. Download the WPLOOK file utility from the following link: ftp://ftp.corel.com/pub/WordPerfect/wpwin/10/wplook.exe [Note that WPLOOK.EXE is a standalone program (it doesn't need to be installed, just double click it) that works on WordPerfect 6.x files and newer. For more on this handy utility see this thread on WordPerfect Universe. Note also that in some recent versions of WordPerfect it is included in the installation's Programs folder on your computer.]
    2. Save the file to a location you can easily find, for example the desktop.
    3. Once the file is downloaded, click Start, Search.
    4. Click "All files and folders".
    5. In "Named" type in on of the following files depending on your version of WordPerfect: QW9EN.WPT (WordPerfect 9), QW10EN.WPT (WordPerfect 10) or QW11EN.WPT (WordPerfect 11).
    6. In "Look In" select "Local Hard Drive(s)".
    7. Once the file is found, right click on it, select copy.
    8. Close the Search window, go back to the desktop, right click an empty spot, select paste.
    9. Open the WPLOOK program that was downloaded in step 1.
    10. Click File, Open.
    11. Select the QuickWords file that was copied to the Desktop in step 8, click open.
    12. Click Edit, Extract text from document.
    13. Click Extract Text.
    14. Close WPLOOK.
    • A new file will be created on the Desktop called: QW9EN.txt (for WordPerfect 9), QW10EN.txt (for WordPerfect 10) or QW11EN.txt (for WordPerfect 11). This file has all the ... information in text file format.

Page Top

Footnote 1

As explained in the Notes above, a simple macro can automatically expand an existing QuickWord. Using a similar command to the one in the Notes example and adding some code to it, we get a macro that should do the job of removing any "bracketing" [Font] and [Font Size] codes that might be imported by the expanded QuickWord, thereby conflicting with the current font and size in effect at that location. (Other format codes inside the expanded QuickWords should not be affected.)

UPDATE (Jul 2, 2009): A user on WordPerfect Universe ("Jomomma") reported that this problem can be eliminated by using styles inside QuickWords:

"...Basically, you can park the text in a style that doesn't include font or font size codes, then store [i.e., create] the style as a QuickWord. Other formatting can be included in the style, e.g., hyperlinks, text attributes, any formatting that the Style Editor allows.
   Done that way, the text stored in the style takes whatever font and font size that is applicable at the insertion point. And because the style is stored in the QuickWords template file, you can delete it afterward from the available styles list in the Styles dialog so you have fewer style names to traverse to find the one you want.
   Tested and works in X4 and X3...."

[But for those who are curious about using a macro to solve this problem, see the rest of this Footnote.]

IMPORTANT: As noted above, this macro assumes a QuickWord abbreviation exists, named (here) "\abc." You can substitute any existing abbreviation for your own purposes (be sure to retain the double quote marks).

Note: There is extra code ("// This segment...") to deal with the need to have Reveal Codes visible during the macro's operation. It will reset the state of Reveal Codes to the previous state when the macro exits.

To copy this macro code to your WordPerfect program, see here.

// Macro begins

// BE SURE TO REPLACE \abc IN THE NEXT COMMAND
// WITH THE NAME OF YOUR OWN QUICKWORD (but
// keep the double quote marks):

AbbreviationExpand (AbbreviationName: "\abc"; Template: QuickWords!)

// Toggle Reveal Codes on if not already on:
Call(RC_Check@)
// Set a temporary bookmark at the cursor location:
QuickmarkSet
// While there's a code or space on the left:
While(?LeftCode>0 or ?LeftChar=" ")
// While the code is a [Font] or [FontSize] code:
While(?LeftCode=6868 or ?LeftCode=7124)
DeleteCharPrevious // (delete the code)
Endwhile
PosCharPrevious
Endwhile
QuickmarkFind
BookmarkDelete("QuickMark")
// Restore user's Reveal Codes state:
Call(RC_Reset@)
Return

// This segment is usually called at the top of a macro:
Label(RC_Check@)
// Check to see whether Reveal Codes is on
// (we want it on while macro plays).
// First get the current state of Reveal Codes:
vRevCodeState:=?RevealCodesActive
// Then get the current View (draft, page, two-page):
vDispMode:=?DisplayMode
// Toggle to Page view first ("2"=Draft; "3"=Page;
// note that in some WP versions the Command
// syntax's help file shows "4" for Two Page View,
// even though it is really "5"):
If(?DisplayMode <> 3) ViewPage Endif
// Turn Reveal Codes on if it is not already on:
If(NOT ?RevealCodesActive) RevealCodes(On!) Endif
Return
// This segment is called at any point where the macro exits:
Label(RC_Reset@)
// Reset state of Reveal Codes and WP menu's View setting:
If (NOT vRevCodeState) RevealCodes(Off!) EndIf
// First, if inside a substructure, mark current location, then
// exit the substructure(s):
BookmarkCreate("TempBookmark4Subs")
If(?Substructure)
While (?Substructure)
vSubDoc:=?CurrentSubDoc
SubstructureExit
If ((vSubDoc=10) or (vSubDoc=11))
BoxEnd (Save!)
EndIf
EndWhile
Endif
// Reset user's display mode (see View menu):
// (Note: Web Page view in WP8/9: Since there is no 'ViewWebPage'
// macro command in WP8/9, get the user's WP version number and
// restore the view to Page)
vWP:=?MajorVersion
If((vDispMode=1 and vWP<=8) or (vDispMode=4 and vWP=9)) ViewPage Endif
If(vDispMode=2) ViewDraft Endif
If(vDispMode=3) ViewPage Endif
If((vDispMode=4 and vWP<=8) or (vDispMode=5 and vWP>8)) ViewTwoPage Endif
// Go back to cursor location:
BookmarkFind("TempBookmark4Subs")
BookmarkDelete("TempBookmark4Subs")
Return

// Macro ends