Hi,
In this scenario I would use a named range for one series off cells which should be cleared before sending off the document. For instance the name “MustBeDeleted”.
Then in de workbook_befereSave this code.
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
On Error GoTo MaySendThis
If IsEmpty(Range("MustBeDeleted").Cells(1, 1)) Then
MsgBox "It is save to send this"
Else
MsgBox "Must Be deleted before sending", , "Still present"
End If
Exit Sub
MaySendThis:
MsgBox Err.Description, , "An error occured"
End Sub
Hoop this helps,
Bookmarks