Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Automatically run a macro in time that user wants

Hi
I have an excel that contains a macro and I want that macro to run
automatically at the time I want. For example I have my pc open and I want to
run automatically this macro at 10:00 am. Without to need to press any
button. Is there any way to do that from Excel code?? Or is there any other
way??
Please let me know!

Thanks a lot

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Automatically run a macro in time that user wants

use
APPLICATION.ONTIME

Help shows how

Sub StartTimer()
Application.OnTime TimeSerial(8, 15, 0), "WakeUp"
End Sub
Sub WakeUp()
MsgBox "Time to Go!"
End Sub


"Kyriaki" wrote:

Hi
I have an excel that contains a macro and I want that macro to run
automatically at the time I want. For example I have my pc open and I want to
run automatically this macro at 10:00 am. Without to need to press any
button. Is there any way to do that from Excel code?? Or is there any other
way??
Please let me know!

Thanks a lot

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 180
Default Automatically run a macro in time that user wants

I don't do this by keeping Excel open. Rather, within Excel I create an
Auto_Open macro that will run when the file is opened (sign it using the
selfcert.exe program, and indicate that you trust yourself; this avoids
security warning dialogs). Then put the Excel file on a Windows Scheduled
Task, and use the scheduler to control when the macro runs.

"Kyriaki" wrote:

Hi
I have an excel that contains a macro and I want that macro to run
automatically at the time I want. For example I have my pc open and I want to
run automatically this macro at 10:00 am. Without to need to press any
button. Is there any way to do that from Excel code?? Or is there any other
way??
Please let me know!

Thanks a lot

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
run macro automatically when user changes the data poit in Pivot c Lin Charts and Charting in Excel 1 April 8th 09 04:36 PM
First Time Macro User--Stop Recording Toolbar [email protected] Excel Discussion (Misc queries) 1 November 16th 07 10:44 PM
Formula needed - automatically calculate session time totals for each user optimusprym8 Excel Worksheet Functions 2 June 22nd 06 02:01 PM
Run a macro automatically at a certain time Curt D. Excel Worksheet Functions 4 April 28th 06 10:19 PM
Macro to record user name and date/time Maddoktor Excel Discussion (Misc queries) 0 December 8th 05 10:03 PM


All times are GMT +1. The time now is 12:34 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"