Thread: OR statement VB
View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default OR statement VB

if or(Sheets(1).Range("K36")16%, Sheets(1).Range("K37")16%) then
BLABLABLA


MsgBox val1 20 Or val2 0 then BLABLABLA without IF please?

Mike


"Bob Phillips" wrote:


"Mike H" wrote in message
...
Max,

You can't use OR without IF and I gave you the VB version.



val1 = 17
val2 = 2

MsgBox val1 20 Or val2 0