Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
IF (cond1 OR Cond2) Then
.... Else .... End If eg. Sub test() If ((Range("a20") = 10)) Or (Range("B20") = 5) Then MsgBox "Either A20 is 10 or B20 is 5" Else MsgBox "both are false" End If End Sub "Papa Jonah" wrote: I would like to have an IF Then statement that is of the ilk, If this or that then... How do I put the "or" part of it in there? I know how to do the or(x,y) thing in a worksheet. Thanks, Papa J |