Thanks Joe Was
Your suggested
If (myVal is > 5 And myVal <> 0) Then
led me to
If (myVal is > 5 And myVal <> 0) Or (myVal is > 15 And myVal <> 10) Then
which was a great help
Thanks Joe Was
Your suggested
If (myVal is > 5 And myVal <> 0) Then
led me to
If (myVal is > 5 And myVal <> 0) Or (myVal is > 15 And myVal <> 10) Then
which was a great help
I was looking for "If with Or" statements in VBA and came across this thread. Two questions rose in my mind: does "myVal is > 5" work with your Excel? I have to leave out the "is"... and the other question: what is the reason for this combination of arguments? I can get the same result with the statement
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.