Programatically closing an Outlook Item?

M

Mario Escalante

Is there a way to close an Outlook Item (in this case, a Post custom
form) using a VBscript Command Button?

Since Item_close() is an event handler, I can't use it or I'm not using
properly to access it via VBscript

Thanks for your help.
Mario
remove noSPAM from the email for my address.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
S

Sue Mosher [MVP]

When in doubt, check the object browser: Press ALt+F11 to open the VBA environment in Outlook, then press F2. In this case, PostItem.Close, with the appropriate argument depending on whether you want to save it or not.


--
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