Ignore Msg popup

tiomin

Board Regular
Joined
Nov 27, 2003
Messages
147
I have a Summary Workbook that gathers data from many workbooks in a particular directory. Macro created to go to the directory, open each workbook, gather the data from particular cells, then closes the workbook and onto the next workbook. Works well. However, each workbook has a sub routine Workbook_BeforeClose to check a range of cells to see if all the data are present. If not a MsgBox pops up to let the user know (but it still allow the user to close and save the workbook).

Since we could be dealing with hundreds of workbooks the macro to extract the data in the Summary workbook may encounter many MsgBox pop ups that has to be clicked to close before the next workbook is opened. Any way I can use VB to automatically get rid of these MsgBoxes when they pop up?

Thanks
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
You can stop the BeforeClose code running like this

Code:
Application.EnableEvents = False
'
'your code
'
Application.EnableEvents = True
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,979
Members
448,934
Latest member
audette89

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