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 2005

Tip: Looking for answers? Try searching our database.

Auto-Updating Hyperlinks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
J Streger - 25 Feb 2005 14:57 GMT
I am creating a Word 2000 document which has hyperlinks to non-Word files.
These files will be transferred with the file, but the directory and their
location will change, and I want the hyperlinks to follow them, even if moved
to a CD, different drive etc.

currently I am using this in the open procedure to change all the
hyperlinks. But is there a way it could search for the folders and if not
found, either find them on the computer or if not, prompt the user with a
browser to find them?

   Dim MyHyper As Object
   
   For Each MyHyper In ActiveDocument.Hyperlinks
       MyHyper.Address = "C:\TestFolder"
   Next MyHyper

Thanks.
Signature

*********************
J Streger
MS Office Master 2000 ed.
MS Project White Belt 2003

Jean-Guy Marcil - 25 Feb 2005 15:22 GMT
J Streger was telling us:
J Streger nous racontait que :

> I am creating a Word 2000 document which has hyperlinks to non-Word
> files. These files will be transferred with the file, but the
[quoted text clipped - 11 lines]
>        MyHyper.Address = "C:\TestFolder"
>    Next MyHyper

If you keep all document in a folders that are children to the folders where
the Word document is stored, you can move the whole thing around as much as
you want, and all the links will still work. I do this all the time for
myself and for my clients.

It is just a matter of getting the people to understand that all they have
to do is copy the stuff in any folder, but keep the hierarchical structure
for all children folders.
Then you do not need to bother with macros to find the linked documents and
to recreate the links. Much safer this way and much easier to handle.

Just my 2 cents!
Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org


Rate this thread:






 
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.