it is possible to highlight multiple textbox in one userform to inform that the field need to be field?
If TBPOCD.value = "" Or TBEPON.value = "" Or TBLN.value = "" Then
If TBPOCD.value = "" Then
TBPOCD.BackColor = vbYellow
Exit Sub
End If
If TBEPON.value = "" Then
TBEPON.BackColor = vbYellow
Exit Sub
End If
If TBLN.value = "" Then
TBLN.BackColor = vbYellow
End If
VBA Code:
If TBPOCD.value = "" Or TBEPON.value = "" Or TBLN.value = "" Then
If TBPOCD.value = "" Then
TBPOCD.BackColor = vbYellow
Exit Sub
End If
If TBEPON.value = "" Then
TBEPON.BackColor = vbYellow
Exit Sub
End If
If TBLN.value = "" Then
TBLN.BackColor = vbYellow
End If