Hi,
I am looking for a VBA with multiple message boxes based on following criteria:
1) Check if specific cells are blank. If blank --> Message Box " Mandatory fields still blank - please fill cells"
2) Check all other cells if there are blanks. If there are blanks--> Message Box "There are still empty cells - Proceed?"
3) If both boxes have been passed, then Message Box "Control Check Complete"
I found this VBA online which really helped - but i'm not sure how to add the other two conditions to make it work - any help please??? Thanks!!
Sub FormatCheck()
Dim CheckCell As Range
For Each CheckCell In Sheets("FeederSheet").Range("E9,E15,E16,E18,E19").Cells
If Len(Trim(CheckCell.Value)) = 0 Then
CheckCell.Select
MsgBox "Cell " & CheckCell.Address(0, 0) & " is a Mandatory Field. Click OK and fill the cell.", , "Missing Information"
Exit Sub
End If
Next CheckCell
Bookmarks