Is there a way to check multiple ranges, if they are blank then display a message box and tell me which ones have data missing? At the moment I'm typing this out and doing loads of different ones. Was wondering if there is an easier way?
My range is: Range("C11:D11,F11:G11,I11:J11,C14:F14,I14:J14,C15:F15,I15:J15,B18:J18,B42:J42"))
If WorksheetFunction.CountA(Range("C9:E9")) = 0 Then
Worksheets("Create Form").Range("C9:E9").Select
MsgBox "Please enter information in the required fields."
Exit Sub
End If
If WorksheetFunction.CountA(Range("H9:J9")) = 0 Then
Worksheets("Create Form").Range("H9:J9").Select
MsgBox "Please enter information in the required fields."
Exit Sub
End If
Thank you