Occurs just before an attachment is saved.
Syntax 1
Function Item_BeforeAttachmentSave(byVal Attachment)
Syntax 2
Sub object_BeforeAttachmentSave(Attachment as Attachment, Cancel as Boolean)
object An expression that evaluates to an object in the “Applies To” list.
Attachment Required. The Attachment to be saved.
Cancel Optional. False when the event occurs. If the event procedure sets this argument to True, the save operation is not completed and the attachment is not changed.
Remarks
Use Syntax 1 in VBScript. If you set the return value of this function to False, the save operation is cancelled and the attachment is not changed.
Use Syntax 2 when handling the BeforeAttachmentSave event in Microsoft Visual Basic or Microsoft Visual Basic for Applications.