Hi,
I'm having some problems updating my queries. I have unchecked Enable Background Refresh for the all the queries in the workbook (there are a maximum of three). However I find that when I run the code below it only updates one of the queries. I then have to run the same code another time to update the other query but running the code twice only works sometimes.
[vba]
Sub Refreshwebqueries()
ActiveWorkbook.RefreshAll
End Sub
[/vba]
Is the above the best code to update all the webqueries or would something else work better? E.g some kind of loop/next function within the code that tells to update each query one at a time?
Thanks,
H