troubleshooting Question

MS WORD 2010 and 2003 both installed on computer

Avatar of MKadric
MKadric asked on
Programming Languages-OtherVisual Basic ClassicMicrosoft Word
4 Comments1 Solution453 ViewsLast Modified:
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.application")
            Set wdDoc = wdApp.Documents.Open(strFilename)
            wdApp.Visible = True
            wdApp.WindowState = wdWindowStateNormal
            wdApp.Activate
            wdDoc.SaveAs strFilename
           
            objRecSet.Fields("Document Path") = strFilename
            objRecSet.Update

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros