Anyone with Visual Basic experience, please help

Markolc

Member
Jan 13, 2000
38
0
0
I'm writing code in my program. I have one if/then statement that ha sa goto statement in it. It goes to line 999 which is the last line of the code. Now, I want the computer to execute line 999 only when satisfied by the if/then statement, because at the moment as the computer executes all the code, once it gets to line 999 it executes it anyway. I don't want it to execute line 999 unless the if/then statement takes it there. In other words, how do I stop the program before line 999 without turning off the program?