Thread
:
Using Or in an If statement
View Single Post
#
5
Posted to microsoft.public.excel.misc
jase
external usenet poster
Posts: 117
Using Or in an If statement
that worked, thanks
"Jarek Kujawa" wrote:
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
jase
View Public Profile
Find all posts by jase