Thank you for the quick response. It worked greatly. If I wanted to add another If in there, like
Code:
If Label3(SP + 3).Caption = "2.16" And Mid$(Label3(SP + 1).Caption, 5, 2) = "72" Then
MsgBox ("Diameter and Carbon Passed!")
Else
MsgBox ("STOP! INCORRECT CARBON AND DIAMETER MATCH! CONTACT SUPERVISOR NOW!")
End
End If
Where it also looks for 2.16 and ="72", on top of the 2.20 and = "82", how would you code that?
Would it look something like
Code:
If Label3(SP + 3).Caption = "2.20" And Mid$(Label3(SP + 1).Caption, 5, 2) = "82" OR If Label3(SP + 3).Caption = "2.16" And Mid$(Label3(SP + 1).Caption, 5, 2) = "72" Then
MsgBox ("Diameter and Carbon Passed!")
Else
MsgBox ("STOP! INCORRECT CARBON AND DIAMETER MATCH! CONTACT SUPERVISOR NOW!")
End
End If
?