Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refreshing MS Query when opening a file

Status
Not open for further replies.

NigelByrne

Programmer
Mar 25, 2002
1
GB
How do I refresh a Microsft Query when opening an Excel workbook. I have tried : -

Private Sub Workbook_Open()

Sheets(1).QueryTables.Refresh BackgroundQuery:=False

End Sub

But it gives me an error, any help would be gratefully recieved.


Regards


Nigel
 
Right click in the data range, goto DataRange properties and choose "Refresh On Open" Rgds
~Geoff~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top