OK I am working within MS97 Access database....(yes its a bit of a joke now in 2012!)
Anyway, I have some code that intialise MSWord97 dumps some bookmarks, prints and closes.
I now need it to do exactly the same thing but instead of opening Word 97 I want it to open Word 2007 - can this be done or are they too far apart in versions?
We have Office 97 as a default suite but also have 2007 version of Word/Excel installed so its all a bit of mish mash really.
Any help appreciated
Anyway, I have some code that intialise MSWord97 dumps some bookmarks, prints and closes.
I now need it to do exactly the same thing but instead of opening Word 97 I want it to open Word 2007 - can this be done or are they too far apart in versions?
We have Office 97 as a default suite but also have 2007 version of Word/Excel installed so its all a bit of mish mash really.
Code:
Dim dbs As Database
Dim objWord As Object
Dim PrintResponse
Set dbs = CurrentDb
'create reference to Word Object
Set objWord = CreateObject("Word.Application")
'Word Object is created - assign bookmarks with data.
With objWord
.Visible = True
.........
End With
'Print the document
objWord.ActiveDocument.PrintOut Background:=False
'release all objects
With objWord
.Visible = False
.Quit False
End With
Set objWord = Nothing
Set dbs = Nothing
Any help appreciated