In the following code, why does the block format If
Then
Else
execute without error, but the single line version generates a syntax error?
Test = False
Sub SubA
MsgBox "A"
End Sub
Sub SubB
MsgBox "B"
End Sub
If Test Then
SubA
Else
SubB
End If
If Test Then SubA Else SubB 'Syntax error