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-2017 by Barry MacDonnell. All Rights Reserved.

Page updated Feb 29, 2016

"Bookmarker" - Mark your location and then quickly navigate to it

Download BOOKMARKER.ZIP (version 1.0; 02/29/16; 10,704 bytes); contains 2 macros, BookmarkSet.wcm and BookmarkFind.wcm.

Written in WPX7 but should be compatible with other versions

WordPerfect 11 users: See important information about using macros in the first release of WP11 (11.0.0.233) at the top of this page.

Downloading, Documentation, Modifications, and Support


Related -

See QuickMarks on the "Navigating quickly to your favorite folders, files, and templates from inside WordPerfect" page.

A QuickMark (see Tools, Bookmark) is a special bookmark that is used in a similar manner to the Bookmarker macros downloadable from this page.

However, since WordPerrfect can also set a new QuickMark for various reasons, and since only one QuickMark can exist in a document (the same as with any other named bookmark), setting a new one deletes the old one.

On the other hand, the BookmarkSet macro sets a standard (custom-named) bookmark when you play the macro, and is therefore more likely to survive edting over multiple sessions.


Note

WordPerfect menu choices on this site refer to the <WordPerfect> menu (right-click on the top menu bar for a choice of menus). If you use a <Microsoft Word> menu, the choices might be absent from your menu (but not from the program), or they might be found under another menu selection. See here for more.


The macro methods here are not the same method built into the program to move the insertion cursor between the current and previous edit positions (Edit, Go To, Edit Position).

The macros here can be used any time you need to "mark your place" so that you can return to it during the current session or future session.

Two macros are included in the download ZIP file (left sidebar):

BookmarkSet.wcm (v1.0)


Use this macro to set a custom bookmark at the current cursor location so that you can quickly and easily return to the same location in the document.

Be sure to tell this macro what to name the custom bookmark in the redlined User Modification Area at the top of the macro's code. [Just open the macro with Tools, Macro, Edit to view the comments and to make any changes to the macro.] This name must be the same name you use in the companion macro, BookmarkFind.wcm.

The default name for the bookmark is "MyLastCursorLocation" but you can change it. If you do, be sure to also change it in the companion macro, BookmarkFind.wcm.

Remember to save any changes you make to the macro.

Operation

When you play the macro it will create a bookmark at the current cursor location, and a message will appear to tell you what it did. The message can be suppressed in the User Modification Area.

Notes

If a bookmark with the same name already exists in the document the program will simply create a new one with that name at the current cursor location, deleting the old one. (This is the way WordPerfect bookmarks work: there can only be ONE bookmark with the same name in a document.) As long as Bookmark find.wcm uses that name it will be found when you play that companion macro.


BookmarkFind.wcm (v1.0)


Use this macro to find the previously set custom bookmark (see macro above) so that you can return to the same location in the document.

Be sure to tell this macro the name of the custom bookmark to find in the redlined User Modification Area.
[Just open the macro with Tools, Macro, Edit to view the comments and to make any changes to the macro.] This must be the same name you use in the companion macro, BookmarkSet.wcm.

The default name for the bookmark is "MyLastCursorLocation," but you can change it. If you do, be sure to also change it in the companion macro, BookmarkSet.wcm.

Remember to save any changes to the macro.

Operation

When the custom bookmark is found the macro will center the location vertically on screen and optionally "blink" a symbol () on the screen 3 times to make it easier to see that location.

If it is not found in the document you will see an error message. If you believe the bookmark should exist, it might have been deleted. Or you can edit the companion macro, BookmarkSet.wcm, to ensure it is using the same bookmark name.

Notes

You can set the number of "blinks" and/or suppress this feature in the User Modification Area. As well, you can have the macro delete the custom bookmark immediately after it relocates the cursor. You can also suppress the "Found bookmark" message.

Tips


☼  You could create multiple pairs of such macros if you need to place several such bookmarks.

Just name the pairs slightly differently so as not to confuse the program. E.g.:

BM-set-1.wcm and BM-find-1.wcm;
BM-set-2.wcm and BM-find-2.wcm;
etc.

Then be sure the macros in each pair use a the same bookmark -- but differently named from all other pairs.

For example: Two pairs could be used to move back and forth between two relatively fixed points. Just use the "Set" macros to set a separate bookmark at each location and use the two "Find" macros to move between them.

☼  You can assign the macros to a toolbar buttons, shortcut keys, or a menu as described here.