G
GrahamElse
I'm trying to delete an attachment from a sent item using
VB. I'm using the Sentitems folder itemadd event to
detect a msg and then delete as follows...
If objAtt.Type = olByValue Then
If UCase(Right(objAtt.FileName, 3)) = "BAM" Then
objAtt.delete
End If
End If
.... no errors appear but when you look at the msg, the
attachment is still there. This code works fine on Inbox
items. I have noticed that if you right click an
attachment in the sent items preview pane, the Remove
action is greyed out but is available if you open the
item. Do you have to do something special with a sent
item?
VB. I'm using the Sentitems folder itemadd event to
detect a msg and then delete as follows...
If objAtt.Type = olByValue Then
If UCase(Right(objAtt.FileName, 3)) = "BAM" Then
objAtt.delete
End If
End If
.... no errors appear but when you look at the msg, the
attachment is still there. This code works fine on Inbox
items. I have noticed that if you right click an
attachment in the sent items preview pane, the Remove
action is greyed out but is available if you open the
item. Do you have to do something special with a sent
item?