Results 1 to 6 of 6

Thread: How to jump back to the HYPERLINK, create pgm?

  1. #1
    Lively Member
    Join Date
    Apr 06
    Posts
    71

    How to jump back to the HYPERLINK, create pgm?

    Hello,

    Can you tell me if i need to create a VB program that does the following or does this functionality currently exist in WORD?

    Functionality:

    When in a WORD document, that contains HYPERLINKS to boomarks within the same document, when i Cntl-Select a HYPERLINK and jump to that forward bookmark, is there a functionality that i can use that will take me back to the location where i CNTL-Selected the HYPERLINK.

    In other words, i'd like to HYPERLINK around a program and be able to jump back to the places that i HYPERLINKED from.

    I know i can temporarily use the UNDO arrow by placing an "x" next to the HYPERLINK, but the problem is when i want to insert notes ect, they get removed as well!

    Thanks for any insights!

    BobK

  2. #2
    Super Moderator koolsid's Avatar
    Join Date
    Feb 05
    Location
    Mumbai, India
    Posts
    11,449

    Re: How to jump back to the HYPERLINK, create pgm?

    1) insert a bookmark where the hyperlink is, say "aaa"
    2) insert a word "Back" where the bookmark is and hyperlink it to the above bookmark.

    for example

    [create a bookmark here, say "AAA"][this is your hyperlink]
    .
    .
    .
    <your document text here>
    .
    .
    .
    [This is your bookmark where you come when click on the above hyperlink][BACK- hyperlink this back to the bookmark "AAA"]

    Hope this helps...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ

    MyGear:
    Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011

  3. #3
    Lively Member
    Join Date
    Apr 06
    Posts
    71

    Re: How to jump back to the HYPERLINK, create pgm?

    thanks for your input, is this a manual approach?

  4. #4
    Super Moderator koolsid's Avatar
    Join Date
    Feb 05
    Location
    Mumbai, India
    Posts
    11,449

    Re: How to jump back to the HYPERLINK, create pgm?

    thanks for your input, is this a manual approach?
    Yes.

    Do you want that to be coded?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved

    Microsoft MVP: 2011 - Till Date IMP Links : Acceptable Use Policy, FAQ

    MyGear:
    Sony VGN-FZ27G with a triple boot between (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008) and (Win7+Office 2010+VS2010) || Sony VPCCB-45FN with a Win7+Office 2010+VS2010. VM: (XP+Office 2003+VB6), (VISTA+Office 2007+VS2008), (Win8+Office 2010+VS2012) || Mac Book Pro (10.6.8) with Office 2011

  5. #5
    Lively Member
    Join Date
    Apr 06
    Posts
    71

    Re: How to jump back to the HYPERLINK, create pgm?

    yes i've been putting together a psuedo code something like this:

    in the VB program:
    1. capture the hyperlink
    2. capture the bookmark(bm) of the hyperlink
    3. add the bm at the top of an array
    when i enter cntl-alt-b
    get the last entry in the bookmark array
    save that entry as last bm location
    remove that entry from the table
    go to that bm location.

    i'm still working on req1 and trying to figure out how to capture the range that is the location of the HYPERLINK which was clicked so i can save it's bookmark in a bookmark array.

    Would you know how i can identify the RANGE or SELECTION of the HYPERLINK that was clicked by any chance?

    Thanks
    bk

  6. #6
    Lively Member
    Join Date
    Apr 06
    Posts
    71

    Re: How to jump back to the HYPERLINK, create pgm?

    also i've already bookmarked each line of the word document so for line 1 the bookmark is b001, line 2 is b002 and so on, so when i capture the HYPERLINK in action i will then move that HYPERLINKS line number into the bookmark array and that way i can jump back to it.

    thanks

Posting Permissions

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