Check in the registry for HKEY_CLASSES_ROOT/Outlook.Application - this will tell you if it is available. You should then be able to hunt the links in the registry for the post office location and then check if that exists.
As for checking if you're connected to the network, look at the API calls WNET... (WNetGetConnection, I think is one you could use).
>Thanks,
>That means I have to create the Outlook object and after it fails react.
>Therefore a lot of time is waisted waiting for outlook and going through its silly dialog about local access etc.
>There are no low level API calls I could do to know if I have a network connection???
>I I could create a oApp.I_am_connected property I could make all web links invisible at the same time...
>
>Peter
>
>
>
>>>I have an application where I do automation with Outlook.
>>>On a laptop without connection to the network there is no outlook and my system breaks with an OLE error.
>>>Can I check invisibly, if outlook is available and if not disable the interface?
>>>Can I also check if the macro feature has been turned off, to hide that ugly window from MS's security patch<g>
>>>
>>>Peter
>>
>>Peter,
>>You can trap the error using an ON ERROR routine or if you are using a class to handle the functionality, you can use the Error event.
>>
>>Can't help you with the security issue. Sorry.