Display alerts off but still showing messages

Valentino

Board Regular
Joined
Mar 28, 2010
Messages
105
Hi,

I have a code which regularly connects and refreshes a worksheet to an API. In the code I block alerts by using ("Application.DisplayAlerts = False") so that it continues running and refreshing in case of issues. However, it still stops every now and then after an error ("[Datasource error] The remote name could not be resolved") after which i still need to click "OK" before it continues.

In the Power Query Editor / Advanced Editor i have already included code to allow for longer timeout (5 minutes; "[Timeout=#duration(0,0,5,0)]"), which reduced the number of disruptions but did not fully block.

How can i avoid these pop ups and ensure the macro keeps running even when the remote name can (temporarily) not be resolved?

Thanks
Valentino
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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