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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable QueryTable Refresh prompt for good?

Status
Not open for further replies.

Chopsaki

Programmer
Nov 21, 2001
85
US
I have made this monolythic spreadsheet that uses a bunch of stuff to get data. One of the methods it uses is querytables. This is pretty annoying though. Everytime the worksheet is opened excel prompts to refresh the querytables, I will never need this done as it is automated and the data doesn't even come from a db but rather a disconnected RS handed via a COM dll. Is there anyway to stop excel prompting with this msg?
 
If you want to totally disallow refreshes, you can use this code in your workbook_open() event procedure:
Worksheets("myworksheetname").QueryTables(1).EnableRefresh = False
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top