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
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...
Re: How to jump back to the HYPERLINK, create pgm?
thanks for your input, is this a manual approach?
Re: How to jump back to the HYPERLINK, create pgm?
Quote:
thanks for your input, is this a manual approach?
Yes.
Do you want that to be coded?
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
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