Hi,
I am using the code exactly as shown here OutlookCode.com :: Send a standard mail message from a custom form. to overcome the issue with sending custom forms.
Everything works well, except the Item_Close function, which returns the error "The item's properties and methods cannot be used inside this event procedure"
The line in question is
objInsp.Close 1
however I have also tried
objInsp.Close(olDiscard)
...and...
objInsp.Close olDiscard
but the error is the same. There is lots of discussion about this being broken in Outlook 2003 and 2007, but later fixed with a hotfix. I cannot find a similar hotfix for 2010, so assume it made it's way into the final build or a service pack?
Either way, could someone help troubleshoot this for me, or tell me a work around??
Many thanks.
I am using the code exactly as shown here OutlookCode.com :: Send a standard mail message from a custom form. to overcome the issue with sending custom forms.
Everything works well, except the Item_Close function, which returns the error "The item's properties and methods cannot be used inside this event procedure"
The line in question is
objInsp.Close 1
however I have also tried
objInsp.Close(olDiscard)
...and...
objInsp.Close olDiscard
but the error is the same. There is lots of discussion about this being broken in Outlook 2003 and 2007, but later fixed with a hotfix. I cannot find a similar hotfix for 2010, so assume it made it's way into the final build or a service pack?
Either way, could someone help troubleshoot this for me, or tell me a work around??
Many thanks.