Hi Mike,
thanks, I know about the if-statements. But I want to use OR statements, not
only here, but in other parts as well and I thought they might be available
in
VB as well. Just as you can use them in excel, returning a Boolean value.
Can you help me with this one?
Thanks, Max
"steve_doc" wrote:
Hi Max
Standard syntax for using If Then statements is as follows
If ......... Then
dosomething
Else
do something else
End If
Or
If ......... Then
Do something
ElseIf ........
Do something Else
End If
Depending on how many logical statements you have to check - you could also
use the Selectt Case statement
HTH
"Max" wrote:
Hi,
this must be very easy, but I cannot figure it out the right way:
I want an If statement that checks whether one or more cells contain
specific values. Therefore I tried something like:
if or(Sheets(1).Range("K36")16%, Sheets(1).Range("K37")16%) then
BLABLABLA
etc.
However, the OR doesn't work like this, but I cannot figure out how it
should be done!
Thanks for the help!
Max