Open multiple macros with one macro even when one gives error

Jurre90

New Member
Joined
Aug 20, 2015
Messages
7
Dear all,

I am having difficulties with an, what i think, easy macro. I made multiple macro's to change the filter(date) of a pivot. All these pivots are based on different databases. Sometimes when i fill in a date that the pivots need to filter on, it gives me an 1004 error. This is due to that the date is not present in that database and therefore the pivot can't filter on it. This is no problem to me. What i do think is a problem is as follows:

I made a macro to run these multiple macro's but when one gives an error the macro does not continue to call up the macro's after it. The macro i use is:

Sub Run4Batch()

Call rt4Batch_Micro
Call rt4Batch_CC
Call rt4Batch_CRQS
Call rt4Batch_BLOK

End Sub


So when for example Call rt4Batch_CRQS gives an error, the macro does not Call rt4Batch_BLOK. Is there a way to make the macro still execute the ones after the error?

Many thanks in advance!!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,215,002
Messages
6,122,652
Members
449,092
Latest member
peppernaut

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
Back
Top