K4rm4
Mechanical
- Nov 2, 2006
- 12
How do I test the value of a listbox that I have in a cell? "row" is a running variable inside a do while loop.
Range("row,2").Validation _
.Add xlValidateList, xlValidAlertStop, xlBetween, "=$O$4:$O$7"
If Range(row, 2).Value = "Plate" Then
Cells(row, 9) = Cells(row, 5) * Cells(row, 6) * Cells(row, 7) * Cells(row, 8)
End If
Range("row,2").Validation _
.Add xlValidateList, xlValidAlertStop, xlBetween, "=$O$4:$O$7"
If Range(row, 2).Value = "Plate" Then
Cells(row, 9) = Cells(row, 5) * Cells(row, 6) * Cells(row, 7) * Cells(row, 8)
End If