I have a dialog box where I chose a file and then in code the word document is opened. Pretty basic. The code runs fine on one computer, but I moved the code & program to my laptop, I get an error. I have moved the whole code, not an executable.
The error I receive is:
--------------------------------------------------
Run-time error -2147417851 (80010105)
Automation error
The server trew an exception
--------------------------------------------------
Here is the essential code, the error happens at the third line.
strFileName = diaWordFile.FileName
Set objword = New Word.Application
Set objdoc = objword.Documents.Open(strFileName)
Thank you for any help you can provide.
The error I receive is:
--------------------------------------------------
Run-time error -2147417851 (80010105)
Automation error
The server trew an exception
--------------------------------------------------
Here is the essential code, the error happens at the third line.
strFileName = diaWordFile.FileName
Set objword = New Word.Application
Set objdoc = objword.Documents.Open(strFileName)
Thank you for any help you can provide.