Fordraiders
asked on
Close The current Main Item After Hitting a command on a custom form
Outlook 2010
vbscript
custom form
Command Button
I'm sending users a Custom Form email.
With a command button on the form.
After the command button,
Everything is working ok.
Except after the last message box. I want the MailItem to close.
I'm getting the message ok.
MsgBox " The item was saved."
Just not closing the current email.
Set myItem = Application.ActiveInspecto r.CurrentI tem
If Not myItem.Saved Then
myItem.Save
MsgBox " The item was saved."
myItem.close
End If
Set myItem = Nothing
vbscript
custom form
Command Button
I'm sending users a Custom Form email.
With a command button on the form.
After the command button,
Everything is working ok.
Except after the last message box. I want the MailItem to close.
I'm getting the message ok.
MsgBox " The item was saved."
Just not closing the current email.
Set myItem = Application.ActiveInspecto
If Not myItem.Saved Then
myItem.Save
MsgBox " The item was saved."
myItem.close
End If
Set myItem = Nothing
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you're welcome, brett ~ happy to help
... have a happy thanks-giving ~
... have a happy thanks-giving ~
ASKER