A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Thank you for the suggestion. I posted it on Stack Overflow as you suggested and got an answer.
I have pasted the solution below, incase anyone would like to use it. It works flawless.
With ThisWorkbook
For Each objConnection In .Connections
'Get current background-refresh value
bBackground = objConnection.OLEDBConnection.BackgroundQuery
'Temporarily disable background-refresh
objConnection.OLEDBConnection.BackgroundQuery = False
'Refresh this connection
objConnection.Refresh
'Set background-refresh value back to original value
objConnection.OLEDBConnection.BackgroundQuery = bBackground
Next
'Save the updated Data
.Save
End With