How to call subs multiple times

  • Hi All
    I need help to call a sub multiple times. I know how to call a sub a second time but I don't know how to jump the next subs to get back to where I was when I called the sub.


    Thanks in advance, Cobber

  • Hi Kenneth
    Sorry, I can't figure it out.....see below what I'm trying to do.
    When I get to sub C, I want to go back to sub A and when it finishes I want to jump forward to sub D without doing sub B again.


    Sub A
    code etc
    call B
    End sub


    Sub B
    code etc
    call C
    End sub


    Sub C
    call A 'this is where I want to repeat sub A and go to sub D without repeating sub B & C
    End sub


    Sub D
    code etc
    End sub


    Hope this helps, cheers Cobber

  • Hi Kenneth
    This is how I tried to use your code.....but without success, it just keeps looping, where am I going wrong, cheers.


  • Hi,
    The code returns to where is called the sub routine , so maybe a master to run the subs

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!