Hi all,
I have a code that is replacing hyperlinks to open word documents on a networked document as everyone has a unique identifier for the initial drive on the network. For example, I am on the H drive, but the same document for a colleague is on the N drive. I've created a range in excel called filepath, using the =cell("filename") code so each person will have their drive registered to the document.
It runs in break mode, but I receive the 4198 error when I try and run it as normal. I have about 80 documents I need to hyperlink to a master - if anyone has any alternative methods please let me know!
The code is:
Thanks!
I have a code that is replacing hyperlinks to open word documents on a networked document as everyone has a unique identifier for the initial drive on the network. For example, I am on the H drive, but the same document for a colleague is on the N drive. I've created a range in excel called filepath, using the =cell("filename") code so each person will have their drive registered to the document.
It runs in break mode, but I receive the 4198 error when I try and run it as normal. I have about 80 documents I need to hyperlink to a master - if anyone has any alternative methods please let me know!
The code is:
Code:
Sub label1_Click()
Dim objWord As Object
Dim objDoc
Set objWord = CreateObject("Word.Application")
x = Range("filepath") & "\Stage 3.7 Coordinator Item Check.docx"
objWord.Documents.Open (x)
objWord.Visible = True
End Sub
Thanks!