0

I keep getting error runtime 424 when opening a word document from excel. I double-checked the file path as well. The file path seems correct.

Sub OpenDoc()
    Dim strFile As String

    strFile = "C:\Users\risha\Downloads\english_2850_paper.docx"    'change to path of your file
    If Dir(strFile) <> "" Then    'First we check if document exists at all at given location
        Documents.Open strFile
    End If
End Sub
braX
  • 11,506
  • 5
  • 20
  • 33
Shab Meh
  • 51
  • 6

0 Answers0