V
vonclausowitz
Hello,
I have a problem with my Propertychange function which won't fire when
a field has been changed.
Public WithEvents oItem As Outlook.Items
Sub oItem_PropertyChange(ByVal Name As String)
Select Case Name
Case "Role"
If CDate(oItem.Role) = Date - 1 Or CDate(oItem.Role) = Date
And oItem.DueDate = Date Then
MsgBox "Ok, the Role date changed!"
End If
Case Else
MsgBox "ELSE...nothing really"
End Select
End Sub
Marco
I have a problem with my Propertychange function which won't fire when
a field has been changed.
Public WithEvents oItem As Outlook.Items
Sub oItem_PropertyChange(ByVal Name As String)
Select Case Name
Case "Role"
If CDate(oItem.Role) = Date - 1 Or CDate(oItem.Role) = Date
And oItem.DueDate = Date Then
MsgBox "Ok, the Role date changed!"
End If
Case Else
MsgBox "ELSE...nothing really"
End Select
End Sub
Marco