Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Run Excel macro from Scheduled Task

Hello,

My target is to run everyday at 06:00 a macro within my Excel document
without being connected to the server where the file is located.
Based on previopus thread, I identified I have to to:
1. Use the Sub Auto_Open() = done.
2. Use a Scheduled Task with the Excel target file as parameter= done.
3. Lower the Excel security to LOW = done.

Nonetheless, I am facing an issue as the Excel process starts correctly and
it look likes the target file is not loaded and therefore the macro does not
run or the target file is loaded and the macro does not run automatically.

Anyone can help me pelase :-)
Best regards.

Coolthinking

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Run Excel macro from Scheduled Task

Perhaps the macro is outputting a message, and with no-one around to
respond, it just waits.

--
__________________________________
HTH

Bob

"coolthinking" wrote in message
...
Hello,

My target is to run everyday at 06:00 a macro within my Excel document
without being connected to the server where the file is located.
Based on previopus thread, I identified I have to to:
1. Use the Sub Auto_Open() = done.
2. Use a Scheduled Task with the Excel target file as parameter= done.
3. Lower the Excel security to LOW = done.

Nonetheless, I am facing an issue as the Excel process starts correctly
and
it look likes the target file is not loaded and therefore the macro does
not
run or the target file is loaded and the macro does not run automatically.

Anyone can help me pelase :-)
Best regards.

Coolthinking



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Run Excel macro from Scheduled Task

Hello,

Thanks for the suggestion. However, the macro does not provide any messages.
Moreover, if I manually open the Excel file then the macro runs without
trouble.



"Bob Phillips" wrote:

Perhaps the macro is outputting a message, and with no-one around to
respond, it just waits.

--
__________________________________
HTH

Bob

"coolthinking" wrote in message
...
Hello,

My target is to run everyday at 06:00 a macro within my Excel document
without being connected to the server where the file is located.
Based on previopus thread, I identified I have to to:
1. Use the Sub Auto_Open() = done.
2. Use a Scheduled Task with the Excel target file as parameter= done.
3. Lower the Excel security to LOW = done.

Nonetheless, I am facing an issue as the Excel process starts correctly
and
it look likes the target file is not loaded and therefore the macro does
not
run or the target file is loaded and the macro does not run automatically.

Anyone can help me pelase :-)
Best regards.

Coolthinking




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Run Excel macro from Scheduled Task

Try moving the code in Auto_Open to workbook_Open in ThisWorkbook code
module.

--
__________________________________
HTH

Bob

"coolthinking" wrote in message
...
Hello,

Thanks for the suggestion. However, the macro does not provide any
messages.
Moreover, if I manually open the Excel file then the macro runs without
trouble.



"Bob Phillips" wrote:

Perhaps the macro is outputting a message, and with no-one around to
respond, it just waits.

--
__________________________________
HTH

Bob

"coolthinking" wrote in message
...
Hello,

My target is to run everyday at 06:00 a macro within my Excel document
without being connected to the server where the file is located.
Based on previopus thread, I identified I have to to:
1. Use the Sub Auto_Open() = done.
2. Use a Scheduled Task with the Excel target file as parameter= done.
3. Lower the Excel security to LOW = done.

Nonetheless, I am facing an issue as the Excel process starts correctly
and
it look likes the target file is not loaded and therefore the macro
does
not
run or the target file is loaded and the macro does not run
automatically.

Anyone can help me pelase :-)
Best regards.

Coolthinking






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Run Excel macro from Scheduled Task

Thanks for your help. I updated the Excel file with the changes you suggested.
Unfortunately, the issue remains identical, and I am still able to manually
open the Excel file and then having the macro running without trouble.

Coolthinking.



"Bob Phillips" wrote:

Try moving the code in Auto_Open to workbook_Open in ThisWorkbook code
module.

--
__________________________________
HTH

Bob

"coolthinking" wrote in message
...
Hello,

Thanks for the suggestion. However, the macro does not provide any
messages.
Moreover, if I manually open the Excel file then the macro runs without
trouble.



"Bob Phillips" wrote:

Perhaps the macro is outputting a message, and with no-one around to
respond, it just waits.

--
__________________________________
HTH

Bob

"coolthinking" wrote in message
...
Hello,

My target is to run everyday at 06:00 a macro within my Excel document
without being connected to the server where the file is located.
Based on previopus thread, I identified I have to to:
1. Use the Sub Auto_Open() = done.
2. Use a Scheduled Task with the Excel target file as parameter= done.
3. Lower the Excel security to LOW = done.

Nonetheless, I am facing an issue as the Excel process starts correctly
and
it look likes the target file is not loaded and therefore the macro
does
not
run or the target file is loaded and the macro does not run
automatically.

Anyone can help me pelase :-)
Best regards.

Coolthinking







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
Macro to Support a task in excel VM Excel Discussion (Misc queries) 2 March 26th 09 05:33 PM
Trying to run a MSQuery from Excel as a Scheduled Task Doug Excel Discussion (Misc queries) 1 March 6th 09 06:01 PM
Create macro to copy data on a scheduled basis faureman Excel Discussion (Misc queries) 0 January 25th 07 04:25 PM
Excel macro's to run at a scheduled time Pramod Kamath Excel Discussion (Misc queries) 1 August 15th 06 02:04 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 06:00 PM.

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

About Us

"It's about Microsoft Excel"