Dim Word as object, WordType as String
Set Word = CreateObject("Word.Basic")
WordType = Word.appinfo$(2)
Select case wordtype
case "9.0"
'Word 2000
case "8.0"
'Word 97
case Else
'Word 95
end Select
Then you can set the word object to the specific word type i.e.
If WordType = "9.0" Then
'word 2000
Set Word = CreateObject("Word.Application.9"
Else
'word 97
Set Word = CreateObject("Word.Application.8"
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.