kingcashandcarry
Member
what i am trying to do these days is to write a macro that calls 8 macro to run
call macro 1
call macro 2
call macro 3
call macro 4
etg
but in times i want for example to skip macro 2 and run 3 and then skip macro 5 and go to 6. so i am thinking of a message to prompt if i want to run macro or no and if no to go to next. i think for that i will manage to write the code.
is there any way to have a user form or something that can tick which macro to run or not?
i found this code
{ Call macro 1
Dim varResponse As Variant
varResponse = MsgBox("Select 'Yes' or 'No'", vbYesNo, "Selection")
If varResponse <> vbYes Then Exit Sub
' The rest of your code goes here
Call macro 2}
now i have to find not to exit sub but skip
any ideas? could i use this code "On Error GoTo"
call macro 1
call macro 2
call macro 3
call macro 4
etg
but in times i want for example to skip macro 2 and run 3 and then skip macro 5 and go to 6. so i am thinking of a message to prompt if i want to run macro or no and if no to go to next. i think for that i will manage to write the code.
is there any way to have a user form or something that can tick which macro to run or not?
i found this code
{ Call macro 1
Dim varResponse As Variant
varResponse = MsgBox("Select 'Yes' or 'No'", vbYesNo, "Selection")
If varResponse <> vbYes Then Exit Sub
' The rest of your code goes here
Call macro 2}
now i have to find not to exit sub but skip
any ideas? could i use this code "On Error GoTo"
Last edited: