JeffGrant
Well-known Member
- Joined
- Apr 7, 2021
- Messages
- 516
- Office Version
- 365
- Platform
- Windows
Hi All, I am confused by this one.
I have a Nested If statement like this:
The variable SetWeightIgnor is Dim as string at the top of the module.
ElseIf.....
If SetWeightIgnore = "Yes" Then
GoTo KeepMovingOn
Else
Code...
End If
KeepMovingOn:
Elseif....
Now for whatever reason, when the Nested If is true, the Goto is ignored and the entire IF block is terminated, when all I want it to do is to jump to the appropriate Label.
I have tried using various methods to manage the flow of the control using a Select Case and a Function and I get the same result.
Am I missing something obvious?
Thanks in advance
I have a Nested If statement like this:
The variable SetWeightIgnor is Dim as string at the top of the module.
ElseIf.....
If SetWeightIgnore = "Yes" Then
GoTo KeepMovingOn
Else
Code...
End If
KeepMovingOn:
Elseif....
Now for whatever reason, when the Nested If is true, the Goto is ignored and the entire IF block is terminated, when all I want it to do is to jump to the appropriate Label.
I have tried using various methods to manage the flow of the control using a Select Case and a Function and I get the same result.
Am I missing something obvious?
Thanks in advance