Next Sub

SUBAWRXSTi

New Member
Joined
Dec 27, 2004
Messages
20
Hello

I have a process within a sub that depending upon the contents of a system file, need to go to the next sub if an error occurs at a particular point. The sub which I need it to go to on error is labelled as T3_Part_1_Posted.

If this is not possible, I would like to hear other suggestions you may have.

Thanks
Scott
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

tactps

Well-known Member
Joined
Jan 20, 2004
Messages
3,460
If it is in the same macro, then put in:
On Error Goto T3_Part_1_Posted
and change T3_Part_1_Posted to
T3_Part_1_Posted:

If it is a different macro, try:
If [put in your criteria here] then
T3_Part_1_Posted
exit sub
end if

If that doesn't do it, post your worksheet and/or macro using Colo's HTML Maker (see bottom of page).
 

Forum statistics

Threads
1,147,845
Messages
5,743,513
Members
423,801
Latest member
paulj4177

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top