I tried the following in both VB 6.0 and Excel VBA and it works. You did not explain clearly which platorm so I did both.
Create a form then place a command button and a textbox in that form.
I used this code in the form, no mudules.
Private Const version_def = 1
Private Sub Command1_Click()
If version_def = 1 Then
Text1.Text = "A Path Taken"
Else
Text1.Text = "B Path Taken"
End If
End Sub
Need more information about what you are using:
language, application?
Which version? VB6, VBA, VB.NET?