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 Feb 29, 2016 | |
"Bookmarker" - Mark your location and then quickly navigate to it |
|||
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.
|
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) Purpose and customization 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 to set 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 with the Save & Compile button on the macro toolbar above the screen editing area. 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 BookmarkFind.wcm (below) uses that name it will be found
when you play that companion macro.
BookmarkFind.wcm (v1.0) Purpose and customization 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 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, BookmarkSet.wcm. The default name for the bookmark to find 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 you make to the macro with the Save & Compile button on the macro toolbar above the screen editing area. Operation When you play the
macro and 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.:
BMset1.wcm and BMfind1.wcm BMset2.wcm and BMfind2.wcm etc. Then be sure the macros in each pair use a the same bookmark -- but differently named from the bookmarks in 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. |
||