VBA to Automatically Click "OK" in a pop-up

Swoootie

Board Regular
Joined
Jun 28, 2012
Messages
66
Hi all,

I was wondering if there is a way to allow for VBA to automatically deal with pop-ups i.e clicking on the "ok" button instead of requesting the user to do it. Basically there is a spreadsheet that I am working with that is linked to other tables which keep triggering prompts.


Any help at all would be very welcome.

Thanks
 
Could you provide some more information? What kind of prompts?

You might be able to work around it using application.displayalerts
:)

Regards
Adam
 
Upvote 0
Thanks for your response Adam and apologies for the late response (I was out of the office for a few days).
The promts in question relate to other macros that are automatically run when the spreadsheet is open. To make the process more user friendly I was looking to surpress all but specified pop ups (i.e. msgbox alerts) or an automated "click through" all the pop ups that arent input or msg boxes.
I hope this clarifies things, but please let me know if you require any further details.
 
Upvote 0

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