ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Automatic Refresh (https://www.excelbanter.com/excel-discussion-misc-queries/110975-automatic-refresh.html)

Jim

Automatic Refresh
 
I have created a template that has drop down lists. These lists are external
data sets from a SQL database. When I protest the worksheet it does not
allow the refresh.

Second, is there a way for the refresh to be done without the user being
prompted?

Kevin B

Automatic Refresh
 
You could assign a macro to the Workbook_Open event in the Excel file that
uprotected the worksheets, refreshes the data links and then reprotects the
file.

If you're using MS Query to query your database you can save the query and
have it update on open automatcally, but you might have to unprotect the
worksheet first.
--
Kevin Backmann


"Jim" wrote:

I have created a template that has drop down lists. These lists are external
data sets from a SQL database. When I protest the worksheet it does not
allow the refresh.

Second, is there a way for the refresh to be done without the user being
prompted?



All times are GMT +1. The time now is 03:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com