Hi,
I'm using WORD as a software cross reference and jump from 1 program to the
other and sometimes i lose that "web back arrow", so i'm wondering if there
may be a way to intercept the hyperlink function right before it gets
activated? ie when i click a hyperlink, right before it jumps, i'd be able to
call another function to capture the "from" document name. Maybe there's
something like "on hyperlink" event command possibly? , so if i lose that
"back arrow" i can find the previous document in a list that i generate via
that "on hyperlink" call function?
Thanks very much for an ideas!
BobK
bobk544 - 25 Jan 2008 17:50 GMT
Or maybe i can somehow capture the document name up front, ie evertime a
document opens, mabe there is an automatic function like "on document open"
and that's when i could capture the name?
Thanks again!

Signature
bobk
> Hi,
>
[quoted text clipped - 9 lines]
> Thanks very much for an ideas!
> BobK
Helmut Weber - 12 Feb 2008 15:31 GMT
Hi,
for "on document open" see:
http://word.mvps.org/FAQs/MacrosVBA/AppClassEvents.htm
Or, though security settings got me in deep trouble
and I don't know what I did to ocercome them:
Option Explicit
Dim DocFullName As String
'---------------------------------------
Sub Test001()
DocFullName = ActiveDocument.FullName
Selection.Hyperlinks(1).Follow
End Sub
'---------------------------------------
Sub Test002()
Documents.Open (DocFullName)
End Sub
--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Vista Small Business, Office XP