Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 460
Default Trying to run a MSQuery from Excel as a Scheduled Task

I have a scheduled task set up to run a MSQuery in Excel. When the task runs
Excel starts the Query starts and then it stops and waits for me to say I
trust the source of the file. Is there some way to tell the system I trust
the source so it will just run? Also, is there a way to automatically run a
macro on the query results that are returned? So I will have a scheduled task
that will run a MSQuery in Excel and once the query results are returned to a
worksheet a macro will run to edit the contents, all without user
intervention. Thank you in advance for any help you might give.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 460
Default Trying to run a MSQuery from Excel as a Scheduled Task



"Doug" wrote:

I have a scheduled task set up to run a MSQuery in Excel. When the task runs
Excel starts the Query starts and then it stops and waits for me to say I
trust the source of the file. Is there some way to tell the system I trust
the source so it will just run? Also, is there a way to automatically run a
macro on the query results that are returned? So I will have a scheduled task
that will run a MSQuery in Excel and once the query results are returned to a
worksheet a macro will run to edit the contents, all without user
intervention. Thank you in advance for any help you might give.


I have tried putting the MSQuery into a Macro and that works great while I
am in Excel. I have stored the macro in my Personal Macro Workbook. When I
try to specify I want Excel to run PERSONAL.XLS!ESB_Load (the macro I
created) I get an error that the file cannot be found. How do you specify the
macro name??
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduled data capture in Excel jc132568 Excel Worksheet Functions 3 March 5th 08 02:59 AM
Refresh an excel spreadsheet on a scheduled basis AKJ Excel Discussion (Misc queries) 3 November 16th 06 02:42 PM
Excel macro's to run at a scheduled time Pramod Kamath Excel Discussion (Misc queries) 1 August 15th 06 02:04 PM
How to change scheduled payment amount in Excel farmgal Excel Worksheet Functions 0 August 1st 06 03:21 PM
Pivot Table through Scheduled Task [email protected] Excel Discussion (Misc queries) 1 October 18th 05 09:27 AM


All times are GMT +1. The time now is 10:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"