I want to refresh a connection on a protected sheet. Refreshing starts but gets interrupted in the protection-step, so my connection doesn't finish its update. I already searched for hours.
I already set the OLEDBConnection.BackgroundQuery = False,
Checking for Application.CalculationState
or
Application.CommandBars.GetEnabledMso("RefreshStatus")
doesn't work either.
Sub ShortV()
Sheet1.Unprotect
ActiveWorkbook.Connections(1).Refresh
Sheet1.Protect
End Sub