Patrick,
It sounds like you could deselect the 'Refresh data on file open'
option on all your queries by selecting one of the cells in the
external data range and using the menu Data --> Import External Data --
Data Range Properties. Then you could manually refresh them with
the menu Data --> Refresh Data. I think one of the standard buttons
on the External Data toolbar is a Refresh All button, which should
allow you to update all the queries at once.
If you'd rather use vba to disable the 'Refresh data on file open'
option, I think this would work:
Dim WkSht, Qt
With ActiveWorkbook
For Each WkSht In .Worksheets
For Each Qt In WkSht.QueryTables
Qt.RefreshOnFileOpen = False
Next
Next
End With
You could make another similar macro that would refresh all of the
queries:
Dim WkSht, Qt
With ActiveWorkbook
For Each WkSht In .Worksheets
For Each Qt In WkSht.QueryTables
Qt.RefreshOnFileOpen = False
Next
Next
End With
Hope this helps
Jason