compound if statement
Hi,
Like this but be careful with the use of MAX, it's an excel keyword and you
can get into triuble using it as a variable.
Select Case Max
Case Is = 39
dpdval = Roll15
Case Is = 59
dpdval = Roll2
Case Is = 89
dpdval = Roll3
Case Is 89
dpdval = Roll4
End Select
Mike
"Matthew Dyer" wrote:
How do i make this work?
If Max = 39 Then dpdval = Roll15 _
Else Max = 59 Then dpdval = Roll2 _
Else Max = 89 Then dpdval = Roll3 _
Else Max 89 Then dpdval = Roll4
the Then in the first else statement is highlighted and I get an error
Expected: end of statement
|