Jumping in your code

Jumping in your code

RalphBrown99
Advocate Advocate
291 Views
4 Replies
Message 1 of 5

Jumping in your code

RalphBrown99
Advocate
Advocate
Is there a piece of VBA line that sends the program to an specific part of the code in the moment that I am running my program?. I need to go somewhere after evaluate a variable within an branch (IF-THEN-ELSE statement)
0 Likes
292 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Separate that specific code into another procedure and call the procedure.
DO NOT make huge, monolithic, single procedure projects.

--
R. Robert Bell


wrote in message news:5416702@discussion.autodesk.com...
Is there a piece of VBA line that sends the program to an specific part of
the code in the moment that I am running my program?. I need to go somewhere
after evaluate a variable within an branch (IF-THEN-ELSE statement)
0 Likes
Message 3 of 5

arcticad
Advisor
Advisor
Goto is my friend 🙂
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 4 of 5

Anonymous
Not applicable
I know I'll take a lot of heat for this but you should rarely, if ever use
Goto ... 🙂

Joe ...

wrote in message news:5416762@discussion.autodesk.com...
Goto is my friend 🙂
0 Likes
Message 5 of 5

Anonymous
Not applicable
Agreed. The only place I see a need for the use of GOTO is in ON ERROR GOTO. Even that I am not a big fan of.

Regards - Natham
0 Likes