Hello Chandoo users,
My I please have your help, for I am new at VBA?
I need to create a macro-enabled workbook that needs to look at column C(starting at cell 63) and check if it is greater than zero, and if it is , then to also check the range (s:z) on that same row and if any of the cells in the range s:z are blank, then I need to have a message to say "one or more of the cells are blank". I need need this to loop so that it can keep looking down the rows from c3:c1002 respectively.
I was only able to do it for one line:
I would greatly appreciate your help on this.
Thanks,
Manny
My I please have your help, for I am new at VBA?
I need to create a macro-enabled workbook that needs to look at column C(starting at cell 63) and check if it is greater than zero, and if it is , then to also check the range (s:z) on that same row and if any of the cells in the range s:z are blank, then I need to have a message to say "one or more of the cells are blank". I need need this to loop so that it can keep looking down the rows from c3:c1002 respectively.
I was only able to do it for one line:
Code:
Sub Test_Yellow_fields()
If Sheets("Order").Range("C3").Value > 0 And WorksheetFunction.CountA(Range("S3:Z3")) = 0 Then
MsgBox "Missing Data in yellow at line level for the corresponding line"
Else
MsgBox "No missing data"
End If
End Sub
I would greatly appreciate your help on this.
Thanks,
Manny
Attachments
Last edited by a moderator: