Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2008

Tip: Looking for answers? Try searching our database.

Would it be possible to "intercept" a HYPERLINK action?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bobk544 - 25 Jan 2008 16:42 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.