Hi.
Please help. Still learning...
I am trying to write some code that will assign certain values to a variable based on values from a textbox.
So far I have the following but It doesn't seen to be working.
It should be that if my textbox is
0-3 then the expand value should be 0
4-6 then the expand value should be 1
6 and over then the expand value should be 2
This is the code I have
Dim lines As Double
Dim expand As Double
'reset expand value
expand = 0
'check line values and adjust expand values to suit
lines = txtLines.Text
If lines =>4 and <=6 Then
expand = 1
Else: If lines > 6 Then expand = 2
End If