Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Luke Williams Luke Williams is offline
external usenet poster
 
Posts: 23
Default Create macro to search and open hyperlinks

Hello,

I have a document with many hyperlinks named "trace". The links open a PDF
document.

I tried to create a macro which would search for "trace", then I would quit
the search, and over the "trace", the cursor states: Ctrl-Click to open
document. So I try that but it does not work...

Any suggestions?

Thanks,

Luke
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Create macro to search and open hyperlinks

You need to use the Document.FollowHyperlink Method. What do you have in
your code at the moment?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Luke Williams" wrote in message
...
Hello,

I have a document with many hyperlinks named "trace". The links open a
PDF
document.

I tried to create a macro which would search for "trace", then I would
quit
the search, and over the "trace", the cursor states: Ctrl-Click to open
document. So I try that but it does not work...

Any suggestions?

Thanks,

Luke



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I search and replace hyperlinks in a word document. Jen Microsoft Word Help 1 January 9th 07 01:01 AM
All new docs I create have macro warning when I open them Caroline O. Microsoft Word Help 5 December 14th 06 07:31 PM
search and replace macro genius? BobW Microsoft Word Help 1 March 3rd 06 04:40 PM
How do i search and replace text with hyperlinks? Felix Microsoft Word Help 1 May 17th 05 12:13 AM
Search for Checkbox Form field in a macro coginthemachine Microsoft Word Help 1 February 23rd 05 08:49 AM


All times are GMT +1. The time now is 04:03 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"