cvincent
Board Regular
- Joined
- Aug 28, 2011
- Messages
- 66
The following runs fine, however my Excel file is displaying Run-time error 13: Type mismatch. Not sure what that means. Can someone please tell me how to correct this? Thank you.
Sub OpenWordDoc()
Application.DisplayAlerts = False
Dim wordApp As Object
Dim wordDoc As Object
Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = True
Set wrdDoc = wrdApp.documents.Open("F:\EMERGENCY CONTACT MERGE DOC (6-2013).docm", ReadOnly:=True)
Application.DisplayAlerts = True
End Sub
Sub OpenWordDoc()
Application.DisplayAlerts = False
Dim wordApp As Object
Dim wordDoc As Object
Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = True
Set wrdDoc = wrdApp.documents.Open("F:\EMERGENCY CONTACT MERGE DOC (6-2013).docm", ReadOnly:=True)
Application.DisplayAlerts = True
End Sub