ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Run a macro automatically at a certain time (https://www.excelbanter.com/excel-worksheet-functions/85967-run-macro-automatically-certain-time.html)

Curt D.

Run a macro automatically at a certain time
 
What I am trying to do is have a macro run at a certain time and save it
automatically. I have the save portion figured out but I can't seam to get
it to run at a certain time. Any help would be greatly appreciated.

bpeltzer

Run a macro automatically at a certain time
 
I generally make it an Auto_Open macro (to execute whenever the file is
opened), then set the Excel file to run as a Windows Scheduled Task.

"Curt D." wrote:

What I am trying to do is have a macro run at a certain time and save it
automatically. I have the save portion figured out but I can't seam to get
it to run at a certain time. Any help would be greatly appreciated.


Curt D.

Run a macro automatically at a certain time
 
Can you make it auto open at a certain time for this to work?

"bpeltzer" wrote:

I generally make it an Auto_Open macro (to execute whenever the file is
opened), then set the Excel file to run as a Windows Scheduled Task.

"Curt D." wrote:

What I am trying to do is have a macro run at a certain time and save it
automatically. I have the save portion figured out but I can't seam to get
it to run at a certain time. Any help would be greatly appreciated.


Curt D.

Run a macro automatically at a certain time
 
Can you tell me step by step how to make it run as a windows scheduled task?

"bpeltzer" wrote:

I generally make it an Auto_Open macro (to execute whenever the file is
opened), then set the Excel file to run as a Windows Scheduled Task.

"Curt D." wrote:

What I am trying to do is have a macro run at a certain time and save it
automatically. I have the save portion figured out but I can't seam to get
it to run at a certain time. Any help would be greatly appreciated.


bpeltzer

Run a macro automatically at a certain time
 
Start Control Panel Scheduled Tasks. Click Add Scheduled Task. Click
Next, then choose your Excel workbook. Select the frequency and the time.
Enter your password (note that you'll have to maintain this as your logon
password changes). Click Next, select 'open advanced properties...' and
click Finish.
To allow this to run unattended, you've also got to avoid the security
warning. The preferred way to do this is to leave your macro security at
medium (tools macros security), sign your macro (use selfcert.exe and
select your certificate from the VB Editor, tools digital signature...) and
choose to trust yourself when you next open the macro file.

"Curt D." wrote:

Can you tell me step by step how to make it run as a windows scheduled task?

"bpeltzer" wrote:

I generally make it an Auto_Open macro (to execute whenever the file is
opened), then set the Excel file to run as a Windows Scheduled Task.

"Curt D." wrote:

What I am trying to do is have a macro run at a certain time and save it
automatically. I have the save portion figured out but I can't seam to get
it to run at a certain time. Any help would be greatly appreciated.



All times are GMT +1. The time now is 04:47 AM.

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