Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate |
![]() Toolbox for WordPerfect |
||
Macros, tips, and
templates for Corel® WordPerfect® for Windows® |
Page updated Mar 28, 2023 |
|
WordPerfect
Tips Main tips page | Browse more tips |
||
Loading new documents based on custom templates
Related pages on this site:
|
The standard method of loading a new document based on a custom template is to use File, New from Project (or File, New in WordPerfect 8), then select the category and name of the Project, then click Create. However, there are easier and faster ways, especially if you frequently use the same template-generated custom documents. One method uses a new toolbar button, and the other uses a macro (which you can record yourself). Method A: Use a toolbar button that points to the templateThis method uses a toolbar button on your default or custom toolbar that directly "points" to a template. (See Footnote 1.) You need only click the toolbar button and the document loads. Note, however, that this works best with only one version of WordPerfect installed on your system. The method uses the most recently associated WordPerfect filename extension for templates in Windows Explorer. Therefore, the method loads that version of WordPerfect (e.g., WordPerfect 12) along with the document — even if you start from an earlier version (e.g., WordPerfect 8). This might be confusing, and can also take up system resources on some systems. But if you have only one version of WordPerfect installed, the following procedure is easy to use and the result is an icon that loads a document in a jiffy: Method B: Use a macro to load a new template document Another method is to use a very simple
"loader" macro that can be played from the toolbar or a menu item. The
macro selects the template and loads a new document based on it. (There
are no differences in terms of usage or speed of execution between this
method and the preceding one.) Note: This method to record the macro worked for several versions of WordPerfect, but might not work in some earlier versions (e.g., WordPerfect 8) or even in some newer versions. The solution is to write the macro using a single command in it, TemplateSelect ("[path and filename of selected template]") as indicated in Footnote 2 below). Create the macro first —
— then play it with a mouse click:
Right-click anywhere on the toolbar, then click Edit. The Toolbar Editor appears. Step 2. Click the Macros tab, then click the Add Macro button. From the Select Macro window, choose the loader macro you created above, then click Select. Usually, you can answer the "Save macro with full path?" question with "No" since WordPerfect will automatically look for the macro in one of the two folders specified in Tools, Environment, Files, Merge/Macro. A small gray "cassette" icon appears on your toolbar. Right-click on it an choose Customize. Give the button a name in the Button Text field and a Quick tip to display when you pass your mouse over it. Click on the Image Edit button, then click Clear to remove the default icon image. Then use the tools to create your own custom icon (see Footnote 3). Click OK all the way back to the document window. Note that whenever the Toolbar Editor is on screen you can move a button by dragging it, or delete it by dragging it from the toolbar. • Method B2: Create a drop down menu to play macros
|
|
Footnote 1 [Continued from above:] You can create a custom toolbar for just such purposes: Click Tools, Settings, then double-click Customize. Under the Toolbars tab, click Create. (When created, be sure to toggle it "on" back in the Available toolbars window of the Customize Settings dialog.) The new toolbar will be saved as part of your default template, but it can be copied to other templates using the Copy/Remove... button on the target template's Template Property Bar. Note that you can also create a desktop shortcut to "point" to the template file (.WPT). Clicking the desktop shortcut will open WordPerfect and load a new document based on that template. However, unlike in WordPerfect 9 and earlier versions, in WordPerfect 10, 11, and 12 (at least) any startup template macros (i.e., a template macro associated with the Post New trigger) will not automatically play unless WordPerfect is already open. Finally, you can create a vertical toolbar. It can even load macros and open favorite folders. See How to Create a Vertical Toolbar with Text Buttons to Access Your Favorite Folders, Templates and Files (a PDF document, 150Kb). [Continued from above:] IMPORTANT: In some early versions of WordPerfect (e.g., version 8) and perhaps in some later versions, the macro recording method (above) of creating a "loader" macro might not work to produce a macro. If that happens — or you simply want a faster method of creating such macros — you can write a simple one-line macro containing the TemplateSelect() command. Be sure to use the full drive\path\<template name>, and enclose everything in double quotes. For example: TemplateSelect ("C:\Users\{YourUserName}\Documents\My Letterhead.wpt")
[Continued from above:] If you are "artistically challenged" and want
to have something more than a picture of an audiocassette on the
toolbar button that plays your macros (i.e., the default icon that
appears whenever you add any new macro), here's one way to do it. [UPDATE: See this page about how to do it in modern versions of Windows and WordPerfect.] Since WordPerfect is full of features you can add to a toolbar with the Toolbar Editor's Features tab, these already have pre-drawn icons associated with them. You can copy any of their icon images to your new macro's toolbar button and modify it if desired. Here's how: Scroll through the features, select one of them and add it (temporarily) to the toolbar, then edit this temporary icon (right-click it, then click Customize, Edit) and click Copy to copy the image. Click OK back to the Toolbar Editor, and edit your new macro's icon. Clear the gray audiocassette image, and paste the new image into it, making any desired changes, then click OK to get back to the Toolbar Editor. Finally, with the Toolbar Editor on screen, right-click the temporary icon and select Delete. |