Please Help,
I have run across a problem where I am forced to use a VBA macro in bringing up a word document. I can view the word document (which works great ), but if I “CANCEL” to view the word document, I received a Run Time Error 5408 . Below is what I have. Is there a way to trap the error code?
Sub PRD77()
Dim appWord As New Word.Application
Dim docWord As Word.Document
Set docWord = appWord.Documents.Open("S:\VB2 Product Development\PRDs\PRD#77-
Instant VB2 User Registration\PRD#77-InstantVB2UserRegistration.doc")
appWord.Visible = True
End Sub
Please help...
I have run across a problem where I am forced to use a VBA macro in bringing up a word document. I can view the word document (which works great ), but if I “CANCEL” to view the word document, I received a Run Time Error 5408 . Below is what I have. Is there a way to trap the error code?
Sub PRD77()
Dim appWord As New Word.Application
Dim docWord As Word.Document
Set docWord = appWord.Documents.Open("S:\VB2 Product Development\PRDs\PRD#77-
Instant VB2 User Registration\PRD#77-InstantVB2UserRegistration.doc")
appWord.Visible = True
End Sub
Please help...