Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
excel - hyperlinks to pdf documents and saving as webpage | Excel Discussion (Misc queries) | |||
Possible to open word documents in Excel using hyperlinks? | New Users to Excel | |||
Hyperlinks in Office documents | Excel Discussion (Misc queries) | |||
Relative Hyperlinks to PDFs (or other documents) | Excel Discussion (Misc queries) | |||
Relative Hyperlinks to PDFs (and other documents) | Links and Linking in Excel |