Close Form after custom Action

K

Kai Schlotmann

Hello NG,

I have a Form (a kind of permission-request) where I have a custom action
"Permit" on which another answer-form is send.

Clicking on permit the answer-form is send automaticly as response and
that's working fine. But I also want to close this form of
permission-request by clicking on "Permit"!

How is it possible?

Greetings
Kai
 
S

Sue Mosher [MVP]

Try adding this to your CustomAction event handler:

Set objInsp = Item.GetInspector
objInsp.Close 2 ' olPromptForSave

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

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