Mark Level: Trainee Registered: 19-08-2008 Posts: 1
Help opening my word doc
Hi,
I am having some problems geting my word document to open, this is the code I have
Dim appWord As Word.Application
Dim wrdDoc As Word.Document
Dim strFileName As String
strFileName = "E:Copy of FDProjectA&Ptyneltddoc.doc"
Set appWord = New Word.Application
Set wrdDoc = appWord.Documents.Open(strFileName)
MsgBox wrdDoc.Path & "" & wrdDoc.Name
wrdDoc.Close False
appWord.Quit
Set wrdDoc = Nothing
Set appWord = Nothing
End Sub
Is there anyone that can tell me where I'm going wrong?