L
Legacy 452653
Guest
I have a warehouse mod to be completed and ive created automatic or Userform activate that when a order line is in the negative it needs to be highlighted in Reg
The formula I got is:
Private Sub Reg6_Change()
If Sheet12.Range("H6").Value < Sheet12.Range("K6").Value = "0" Then
Me.Reg6.BackColor = vbRed
Else
Me.Reg6.BackColor = vbYellow
End If
End Sub
So Cell H6 is the cell QTY ordered = 3 but in in cell K6 (Instock) = -1 because the TAB reference SUMIF indicates there is 2 in stock.
In the VBA I wanted the code to reflect Reg6 (TextBox) if cell K6 is less than ZERO please conditional format highlight in RED
It doesnt seem to work at all in either greater than so if anybody can help me out that would be great
Steve
The formula I got is:
Private Sub Reg6_Change()
If Sheet12.Range("H6").Value < Sheet12.Range("K6").Value = "0" Then
Me.Reg6.BackColor = vbRed
Else
Me.Reg6.BackColor = vbYellow
End If
End Sub
So Cell H6 is the cell QTY ordered = 3 but in in cell K6 (Instock) = -1 because the TAB reference SUMIF indicates there is 2 in stock.
In the VBA I wanted the code to reflect Reg6 (TextBox) if cell K6 is less than ZERO please conditional format highlight in RED
It doesnt seem to work at all in either greater than so if anybody can help me out that would be great
Steve