Karthik Thandapani
Member
Hello,
My requirement is to refresh data connections one by one to save time as it takes more when we run them together. There are possibilities that Server2 can be offline and I don't want that to stop the ongoing macro. Can anyone please provide a VBA snippet to overcome this?
Sample code:
ActiveWorkbook.Connections("ABCD_Custom").Refresh
ActiveWorkbook.Connections("Server2").Refresh
ActiveWorkbook.Connections("DUBLIN_CUSTOMPNL").Refresh
ActiveWorkbook.Connections("DUBLIN_GLOBALADDS").Refresh
Thanks,
Karthik
My requirement is to refresh data connections one by one to save time as it takes more when we run them together. There are possibilities that Server2 can be offline and I don't want that to stop the ongoing macro. Can anyone please provide a VBA snippet to overcome this?
Sample code:
ActiveWorkbook.Connections("ABCD_Custom").Refresh
ActiveWorkbook.Connections("Server2").Refresh
ActiveWorkbook.Connections("DUBLIN_CUSTOMPNL").Refresh
ActiveWorkbook.Connections("DUBLIN_GLOBALADDS").Refresh
Thanks,
Karthik