Auto Refresh on Opening

  • Thread starter Thread starter sonya
  • Start date Start date
S

sonya

Created an Excel spreadsheet that runs an Access database
query and loads the results into a cell.

Problem - I want the data automatically refreshed (from
Access)when I activate the spreadsheet in Excel. How/Where
do I "code" for Excel to "refresh" before showing me the
first worksheet. (Don't want to see a prompt - just want
to get the latest data without having to click data
refresh.) Thanks.
 
Hi Sonya,
Created an Excel spreadsheet that runs an Access database
query and loads the results into a cell.

Problem - I want the data automatically refreshed (from
Access)when I activate the spreadsheet in Excel. How/Where
do I "code" for Excel to "refresh" before showing me the
first worksheet. (Don't want to see a prompt - just want
to get the latest data without having to click data
refresh.) Thanks.

Once you've set up the query, right-click in the data range, select
"Data Range properties" and tick "Refresh data on file Open"

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top