Hi there
i have a little sub wich check and change the subject.
When it save the subject the ItemAdd Event is firing again and i get an endless loop.
Any ideas what is wrong?
i have a little sub wich check and change the subject.
When it save the subject the ItemAdd Event is firing again and i get an endless loop.
Any ideas what is wrong?
Code:
Private Sub yFld_ItemAdd(ByVal item As Object)
If Left(item.Subject, 16) Like "Visit from Mail:" And IsNumeric(Mid(item.Subject, 17)) Then
NewSubject = "checked: " & item.Subject & " " & newVisit(CLng(Mid(item.Subject, 17)))
If item.Subject <> NewSubject Then
item.Subject = NewSubject
item.Save
End If
End If
End Sub