Alan_P
Well-known Member
- Joined
- Jul 8, 2014
- Messages
- 596
Morning Guys,
My attempts at googling this error have been fruitless so any help would be much appreciated!
I have an excel sheet that creates word documents and is used by around 5-6 people, but for some reason for only 1 person they get a runtime error 5147 on the line in red below. He has access to the file that's linked in the cell (he can open it manually).
Many Thanks,
Alan.
My attempts at googling this error have been fruitless so any help would be much appreciated!
I have an excel sheet that creates word documents and is used by around 5-6 people, but for some reason for only 1 person they get a runtime error 5147 on the line in red below. He has access to the file that's linked in the cell (he can open it manually).
Code:
If Err.Number <> 0 Then
Set wdApp = CreateObject("Word.Application")
End If
On Error GoTo 0
[COLOR=#ff0000]Set TempDoc = wdApp.Documents.Open(Sheets("Templates").Range("C21").Value)[/COLOR]
wdApp.Visible = True
Many Thanks,
Alan.