Thread: and + or
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
pls123 pls123 is offline
external usenet poster
 
Posts: 121
Default and + or

hi all i have a doubt about the syntax of this to be correct..
i want b5+b9 or b5+l9 do i have to use parenthesis around or ??
tyvm

If Range("B5") = 1 And Range ("B9") = True Or Range("B5") = 1 And
("L9") = True Then
Range("A1") = 'You are lucky!
End If