PropertyChange Event

Applies To

AppointmentItem object, ContactItem object, JournalItem object, MailItem object, MeetingRequestItem object, NoteItem object, PostItem object, RemoteItem object, ReportItem object, TaskItem object, TaskRequestItem object.

Description

Occurs when a standard property (for example, Subject or To) of an Outlook item is changed. The property name is passed to the event so that you can determine which property changed.

Syntax

Sub Item_PropertyChange(Name As String)

Name The name of the property that was changed.

Example

This example disables setting a reminder on an item.

Sub Item_PropertyChange(ByVal myPropertyName)
    Select Case myPropertyName
        Case "ReminderSet"
            MsgBox "You may not set a reminder on this item!"
                myItem.ReminderSet = False
        Case Else
    End Select
End Sub