Msgbox Automatic OK In VBA

Schwimms

New Member
Joined
Jan 31, 2008
Messages
49
Hi All,

I have a macro in my main workbook that runs before I get to work in the AM that opens several workbooks and runs macros within those workbooks. The macros within the other workbooks call msgbox's on open that ask the user if they want to refresh click ok or cancel. I am having issues where my main workbook opens the other workbooks but gets stuck on the msgbox's, so when I get in the workbook is just stuck on the msgbox. The reason I need these msgbox's is for users who are not able to refresh because of permissions.

Make sense? Any help please..
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You can use Application.EnableEvents = False to prevent the code in the other workbooks from firing. Just make sure to set it back to true at the end.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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