View Single Post
 
Old 11-24-2017, 08:55 AM
ArviLaanemets ArviLaanemets is offline Windows 8 Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Create a vb-script which opens your Excel workbook (maybe without displaying it at all), refreshes the query, and then saves and closes the workbook. And then run this script by Windows scheduled task.

Btw. Why you need to automate this at all? When someone uses the workbook to see the data, then you can set the query to SQL Server to be refreshed on open. When you query the data in Excel workbook, then why not query the data from SQL Server directly?
Reply With Quote