ajit 0 Posted June 4, 2011 (edited) ;~ $A = 1 ;~ $A = 2 $A = 3 If $A <> 2 OR $A <> 3 Then MsgBox(0, "Info", "A (" & $A & ") is not equal to 2 OR 3") Endif Hi, Please see my script above, I want the msgbox to pop up only when $A is not equal to 2 or 3. Please help me. Regards Ajit Edited June 4, 2011 by ajit Share this post Link to post Share on other sites
sahsanu 28 Posted June 4, 2011 Please see my script above, I want the msgbox to pop up only when $A is not equal to 2 or 3. Please help me.Change your OR to AND. Share this post Link to post Share on other sites
ajit 0 Posted June 4, 2011 @Sahsanu Thanks very much. I got it right now. Regards, Ajit Share this post Link to post Share on other sites