I would like to check whether the Outlook existed or not before doing this - oOutlook=CreateObject("outlook.application"
Is there any way to do so?
cslawtom
You could look at the "solutions" a the registry access to check if outlook is in fact on the user's machine.
Or
You could trap the error if it's not there:
Code:
ONERROR do noOutlook
oOutLook =CREATEOBJECT("Outlook.application")
PROCEDURE noOutlook
messagebox("Outlook is not installed on this computer")
ENPROC
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first
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.