Hi Guillaume,
Another method that, IMHO is simpler, to try is the following:
oWord = ""
mcerror = ON('ERROR')
ON ERROR *
oWord = createobject('Word.Application')
ON ERROR &mcerror
IF TYPE('oWord') = 'O'
Word exists do rest of code
ENDIF
>Hi,
>
>Is there a easy way to see if Word/Excel are installed on my system ?
>If i try a createobject("word.application") i get a CLASS DEFINITION IS NOT FOUND, but i want to check before i do the createobject.
>
>thx
>
>Guillaume
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.