Results 1 to 12 of 12
  1. #1
    New Lounger
    Join Date
    Mar 2007
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Keeping places in Word (2003)

    I have a long doc (250 pages) - I need to work on 2, sometimes 3 places in conjunction with each other. Like having a couple of places in a book, with your fingers stuck in the right places so you can flick back and forth.

    The split screen is cumbersome, leaves little room to work. Bookmarks are clumsy. I can't find any other easy way to do this - bear in mind, I might need to swap "pages" twice a minute...

    Paul

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Keeping places in Word (2003)

    Welcome to the Lounge.

    If it really is only 2 or 3 places then you could use Shift-F5 (Go Back).

    This key combination will cycle you through the last 3 places in the document where you were working - and it even remembers where you were if you exit word or reboot your PC.

    StuartR

  3. #3
    New Lounger
    Join Date
    Mar 2007
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Keeping places in Word (2003)

    Excellent...thank you. Now I'll try to see why I couldn't find it in Help!

    Paul

  4. #4
    New Lounger
    Join Date
    Mar 2007
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Keeping places in Word (2003)

    On second thoughts - if you make an edit, you lose the 2nd or 3rd place you were using.

    Paul

  5. #5
    5 Star Lounger st3333ve's Avatar
    Join Date
    May 2003
    Location
    Los Angeles, California, USA
    Posts
    705
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Keeping places in Word (2003)

    If you were feeling a bit ambitious, you could create a small modeless UserForm in a global template that would sit up at the top right corner of your screen (or wherever else you wanted to put it). It could consist of three narrow text boxes, with an equally narrow command button to the right of each text box, and then a Cancel button at the bottom.

    To make a UserForm modeless, you set its ShowModal property to False.

    The OnClick code behind the first command button would be Selection.GoTo wdGoToPage, Count:=Me.TextBox1 (assuming that was the name of the first text box). For the 2nd button, you'd change Me.TextBox1 to Me.TextBox2. And so on.

    The OnClick code behind the Cancel button would be Unload Me.

    To use it, you'd create a one-line PagePicker macro (or whatever else you wanted to call it) in the same global template that simply said UserForm1.Show (replacing UserForm1 with whatever your UserForm was named).

    After you ran the macro and the form showed up, instead of setting bookmarks, you'd type any page number you wanted quick access to in one of the 3 text boxes, allowing you to always have 3 chosen pages that are a button-click away.

    PS. I did a bunch of work with Word UserForms and VBA a while back but I'm rusty at the moment. If there are any significant holes in my instructions, hopefully one of the less-rusty Loungers can chime in.

  6. #6
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Keeping places in Word (2003)

    Hi Steve,

    This would really be useful since I too have a need to go back and forth between locations for editing. So, in the hopes that one of those less-rusty loungers chimes in, let me add to the wish list.

    My concern with filling page numbers into the text box is that as you edit, the page number of the text to be edited will change. So you have to watch that to make sure you change the text box contents.

    So thinking out loud, what I'd like to be able to have is, for each text box, a second button that can be used if desired. If clicked, that button will create a bookmark called something like edit_location_1, ..._2, etc. The bookmark will be set to the current location/selection. The text box will then be filled in with maybe the first few words of the bookmarked text (or the first few words following the current location if there's no selection). The command button, when clicked, will go to the bookmark location.

    Of course, this will make the form a little bigger but the text boxes don't have to allow too many words. I think allowing both a page number and some referenced text in the same text box might complicate things (eg, how to distinguish between a page numbered 4 and bookmarked text that just was 4) but this could be addressed.

    Anyway, just some thoughts for a less-rusty lounger since, unlike your VBA skills, mine never existed for this level of programming.

    TIA

    Fred

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Keeping places in Word (2003)

    I have attached a zip file with rather simplistic template/add-in Locations.dot. If you unzip the template to your Word startup folder, it'll add a custom toolbar to Word with 6 buttons: 3 to set bookmarks fo the current selection/insertion point, and 3 to go to these bookmarks. If you set one or more locations, they will be saved with the document and be available next time you open it.
    If you want more than 3 locations, open the template directly in Word, add a pair of macros for each new location, and a pair of buttons on the toolbar. You can use the existing macros and buttons as model.

    Note: the default startup location for Word is Cocuments and Settings<username>Application DataMicrosoftWordStartup. Since Application Data is a hidden folder, you must display hidden files and folders in Windows Explorer in order to see it.

    My next reply will contain a screenshot.
    Attached Files Attached Files

  8. #8
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Keeping places in Word (2003)

    Here is the screenshot.

    Note: the add-in is much less sophisticated than Fred Burg's suggestion. To display the actual text of the bookmarks (or the first few words of it) would require writing application-level event code to keep track of which bookmarks have been defined, and to handle switching between documents. This might clash with already existing event code (many companies install add-ins to implement their house style)
    Attached Images Attached Images
    • File Type: png x.png (8.1 KB, 0 views)

  9. #9
    5 Star Lounger st3333ve's Avatar
    Join Date
    May 2003
    Location
    Los Angeles, California, USA
    Posts
    705
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Keeping places in Word (2003)

    Thanks, Hans! Your toolbar may end up in my Startup folder as well.

  10. #10
    New Lounger
    Join Date
    Mar 2007
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Keeping places in Word (2003)

    Ah, Hans, that is really good. Thanks for your assistance. I can now work quickly... <img src=/S/bow.gif border=0 alt=bow width=15 height=15>

    Paul

  11. #11
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Keeping places in Word (2003)

    Hi Hans,

    Thanks for the code.

    When I made my suggestion of displaying the first few words, I was thinking of something like what Andrew Savitkis did in <post#=487142>post 487142</post#> (and you had a follow-up). In Andrew's macro, he reproduced the contents of the entire bookmark. I would think getting the first few words would be a matter of picking off the first x characters with the len function. The key point was to display something beyond a page number that would remind me of what was at each location. Each bookmark would be associated with a location, so if you wanted to change location 1, say, then, with the cursor set to the new location or a new selection, the "set" macro for bookmark1 would re-set bookmark1 to that location/selection and display those first few words in the text box.

    Fred

  12. #12
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Keeping places in Word (2003)

    That code was intended for use within one document. The "keeping places" dialog or toolbar should presumably be available in all documents, so as I explained, you'd have to keep track of the existence and text of the bookmarks as the user switches between documents. Although that is possible, I opted for a quick-and-dirty solution without bells and whistles. Feel free to add them yourself! <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •