see the code below.
IF Weight=0 Then CallFunction
IF Weight=100 Then
Heavy=True
Else
Heavy= False
End If
How is the program working when I have not ended a if statement?
see the code below.
IF Weight=0 Then CallFunction
IF Weight=100 Then
Heavy=True
Else
Heavy= False
End If
How is the program working when I have not ended a if statement?
its VBA's functionality to end up if statements in a single line..
If Weight
is equal to zero, then CallFunction
is executed (if Weight
is not equal to zero, a CallFunction
is not executed), then the code is going to another if
statement. That's all! Debug the program to find out ;)