HI,
If Application.Sheets("Supplier Checklist").Range("C2").Cells = "" Then
Cancel = True
MsgBox "Please fill in the mandatory cells"
End If
For example if I want to make cells C2 to C21 all mandatory, is there an easier way to do this other tahn writing separate lines for each cell, how about if I wanted to make C2;C21 then D35-D49 mandatory. is there an easier way to code?
at the moment I am writing one line of code for one cell. Any easier way?
If Application.Sheets("Supplier Checklist").Range("C2").Cells = "" Then
Cancel = True
MsgBox "Please fill in the mandatory cells"
End If
For example if I want to make cells C2 to C21 all mandatory, is there an easier way to do this other tahn writing separate lines for each cell, how about if I wanted to make C2;C21 then D35-D49 mandatory. is there an easier way to code?
at the moment I am writing one line of code for one cell. Any easier way?