The following is an extremely useful tool for authors, proofreaders, and editors. It saves the current position of your cursor on the fly and then lets you go back to that same position a little later. This is a great tool if you ever have to check an in-text citation against an end-of-document bibliography and then notice that you need to change something in the bibliography. It’s also good if you notice, halfway through reading a document, that an author inconsistently uses both “online” and “on-line” and want to do a quick search-and-replace without losing your place.
It used to be that you could leave your cursor where it was, scroll up and down, and then just press one of the arrow keys to return to your position. With Word 2003, when you scroll, the cursor comes with you. This tool offers a simple workaround for that, too:
Dim pos As Range Dim used As Boolean
Sub SaveRange() Set pos = Selection.Range used = True End Sub
Sub GoToRange() If Not used Then MsgBox "Nothing has been marked." Exit Sub End If pos.Select End Sub
Make sure that the two Dim statement are at the very top of your module so that both of the Subs can access them. Then just add two buttons (and maybe shortcut keys) to your toolbar.
The first macro saves the position of your cursor or any selection you’ve made. The second macro (re)selects the selection saved by the first macro.