How to execute an external program instead of openning the form when opening an inspector

L

Lucas Campos

Hi,
I'd like to execute an external program (through WScript.Shell) when the
user tries to open a particular inspector (for example open a IE browser
instead of a mail) using OL forms.
So I created a form and placed my execution code in the Open Item Event
Handler. The problem is that when I tried to avoid the OL form to open (in
order to just execute the external program) I set the Item_Open property to
false but I couldn't find a way to distinguish when the form is opened in
Design mode and when is opened in run mode, so if I set false to this
property I can't open the form in design mode any more.
Is there any way to distinguish between design and run mode?
Is there any other recommended way to do that?

Any idea will be welcome,

Regards

LucasC
 
K

Ken Slovak - [MVP - Outlook]

Hold down the shift key when you open the form to prevent the form code
from running.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top