Item_Open fires when the item is opened in its own window. Did you publish your form? Code doesn't run on unpublished forms.

Signature
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
Hi,
Yes, I did published the form in Personal Forms Library. Is there any way
to execute a code similar function with "Request a read receipt for this
message"? When you open your mail from Inbox, it fires a code asking for
action for instance.
Thanks.
> Item_Open fires when the item is opened in its own window. Did you publish your form? Code doesn't run on unpublished forms.
>
[quoted text clipped - 5 lines]
> >
> > Thanks.
Sue Mosher [MVP-Outlook] - 28 Sep 2005 15:22 GMT
Sure. In your scenario, this code asks if you want to request a read receipt when you create a new message :
Function Item_Open()
If Item.Size = 0 Then
strMsg = "Do you want to ask for a read receipt?"
res = MsgBox(strMsg, vbQuestion + vbYesNo, "Request Read Receipt?"
Item.ReadReceiptRequested = (res = vbYes)
End If
End Function

Signature
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Hi,
>
[quoted text clipped - 12 lines]
>> >
>> > Thanks.