Thread
:
Using Or in an If statement
View Single Post
#
4
Posted to microsoft.public.excel.misc
Jarek Kujawa[_2_]
external usenet poster
Posts: 896
Using Or in an If statement
the answer to yr original question is yes
Sub sth
If cells(1,1).value = 1 or _
cells(1,1).value = 3 or _
cells(1,1).value = 7 Then
cells(1,2).value = "YES"
End if
End Sub
Reply With Quote
Jarek Kujawa[_2_]
View Public Profile
Find all posts by Jarek Kujawa[_2_]