Does anyone know how to overcome the problem of opening Word documents where the extension is not "doc"?
Dim objWordApp As Word.Application
Dim objWordDoc As Word.Document
yourdoc = "c:\test.0" 'is a word document given a different extension
Set objWordApp = New Word.Application
objWordApp.Visible = False
Set objWordDoc = objWordApp.Documents(yourdoc)
--this code generates an error
Dim objWordApp As Word.Application
Dim objWordDoc As Word.Document
yourdoc = "c:\test.0" 'is a word document given a different extension
Set objWordApp = New Word.Application
objWordApp.Visible = False
Set objWordDoc = objWordApp.Documents(yourdoc)
--this code generates an error