Close Form after custom Action

  • Thread starter Thread starter Kai Schlotmann
  • Start date Start date
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
 
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
 
Back
Top