Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default hyperlinks to word documents

Hi,

I want to open a word document using a hyperlink. Thing is the word
document location may change. Is there a way to refresh the hyperlink when
the word document moves? I've tried doing a search for the document by name
and then opening it once its found but it doesn't seem to work. Here is the
code:

Sub test()
Set fs = Application.FileSearch
With fs
.NewSearch
.FileType = msoFileTypeWordDocuments
.LookIn = "O:\Post 16 Statistics\Key Outputs\CPR Pack\Jul 2006\Databases
& templates\CPR_Interactive"
.Filename = "iCPR faq.doc"
If .Execute 0 Then
With wordApp
.Documents.Open Filename:=.FoundFiles(1)
.Visible = True
End With
Else
MsgBox "There were no files found."
End If
End With
End Sub

Thanks
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel - hyperlinks to pdf documents and saving as webpage Althea Excel Discussion (Misc queries) 0 July 23rd 07 03:34 AM
Possible to open word documents in Excel using hyperlinks? DobieM New Users to Excel 2 July 12th 06 04:08 PM
Hyperlinks in Office documents Joyce Excel Discussion (Misc queries) 1 May 25th 05 06:45 PM
Relative Hyperlinks to PDFs (or other documents) || cypher || Excel Discussion (Misc queries) 1 November 30th 04 03:05 AM
Relative Hyperlinks to PDFs (and other documents) || cypher || Links and Linking in Excel 0 November 30th 04 02:01 AM


All times are GMT +1. The time now is 03:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"