Automating word from Access... When I use, for example...
Set wordapp = New Word.Application
...word 2003 opens. I want it to open word 2013. How can I specify which version of word is referenced?
I refer to the "microsoft Word 15.0 Object Library", under tools. I can see both word 2003 and word 2013 as default apps to associate with various file types. I cannot see word 2003 among my list of "All apps". This is all under Windows 10
Try something like this...
'// Open word
Option Explicit
Sub Open_Word_App()
Dim wdApp As Object ' Application
Set wdApp = CreateObject("Word.Application")
wdApp.Visible = True
Set wdApp = Nothing
End Sub
Thanks All!
I should have specified, I had already tried late binding, to no avail.
I am refining my automating code between access and word, as well as refining my database. I don't want to switch to the new code that I am working on, until I am sure it works, and works on 2013. Until then, I want to continue to be able to work using the old code and database with 2003. Thus the parallel installations.
A the moment, while I am working on my code for 2013, I just rename winword.exe in programfiles(x86) office11, ie hide 2003, and 2013 launches as it should. When I am using the old database and old code, I re-rename, and use 2003 as before.
When the new database and word code are tested, I will re-register 2013 as suggested, and remove 2003.
Thanks again for your thoughts!
Mark.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.