On my Windows 8.1 platform, I have programs that create (used to anyway) MS Word Documents. Using code below (as an example program), when the Word Doc was created, it defaulted to MS Office 365. I installed my legal copy of MS Office Enterprise 2007 and use it for all my office products. As my free trial expired several months ago, when attempting to open the document (manually), it would always default to 365. I easily changed that by opening with 2007. However, I didn't want to have to go through that each time I created a new document, so yesterday I UNINSTALLED MS Office 365 in the system's control panel. Prior to yesterday, this below code worked just fine (although defaulted to being opened in 365). Now, however, on the line highlighted shown in RED, I get error shown.
Any suggestions?![Name: Component Busy.JPG
Views: 60
Size: 19.2 KB]()
Code:
Dim oApp As Word.Application
Dim oDoc As Word.Document
Dim oTable As Word.Table
Set oApp = New Word.Application
Set oDoc = oApp.Documents.Open(App.Path + "\myTemplate.docx")
Set oTable = Nothing
oDoc.SaveAs App.Path + "\mytemp1.docx"
oApp.Quit
MsgBox "Done"