MKadric
asked on
MS WORD 2010 and 2003 both installed on computer
I use the code below to open a word dot file which the dot file is associated with 2003. Which is what I want to open with, but 2010 keeps opening... I need to make sure 2003 always opens with the code below..
Public obj As Word.Application
Public wdApp As Word.Application
Public wdDoc As Word.Document
Set wdApp = CreateObject("word.applica tion")
Set wdDoc = wdApp.Documents.Open(strFi lename)
wdApp.Visible = True
wdApp.WindowState = wdWindowStateNormal
wdApp.Activate
wdDoc.SaveAs strFilename
objRecSet.Fields("Document Path") = strFilename
objRecSet.Update
Public obj As Word.Application
Public wdApp As Word.Application
Public wdDoc As Word.Document
Set wdApp = CreateObject("word.applica
Set wdDoc = wdApp.Documents.Open(strFi
wdApp.Visible = True
wdApp.WindowState = wdWindowStateNormal
wdApp.Activate
wdDoc.SaveAs strFilename
objRecSet.Fields("Document
objRecSet.Update
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I don't know of one. I suggest that you trap the error.
ASKER
Worked like a charm... Thanks
ASKER