Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a workbook that I keep date material in.
I am willing to have it open all day long to accomodate this but what I want is for a window to pop up when a condition is met within the sheet (e.g. a time of day is reached) without restoring the wrkbk. Ideally the workbook does not have to be open but I realize that may be asking a lot. Thanks in advance. Finn |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
You can schedule a macro in Excel. In the following example, the macro runs at 9:45 AM if Excel is open and is in ready mode. The OnTime method of the Application object schedules "Macro1" to run at 09:45 AM. If you open this file run this macro at say 7:30 AM and save/close the file but keep Excel running, the file will automatically open at 9:45 and "Macro1" will run. You can experiment with this idea a bit more to get the desired effect. Sub ScheduleAMacro() Application.OnTime TimeValue("09:45:00"), "Macro1" End Sub Sub Macro1() MsgBox "It is time to run this macro." End Sub -- Anant "Finny" wrote: I have a workbook that I keep date material in. I am willing to have it open all day long to accomodate this but what I want is for a window to pop up when a condition is met within the sheet (e.g. a time of day is reached) without restoring the wrkbk. Ideally the workbook does not have to be open but I realize that may be asking a lot. Thanks in advance. Finn |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Anant, that is a cool function.
looking for the desktop alert... Anant Basant wrote: Hi, You can schedule a macro in Excel. In the following example, the macro runs at 9:45 AM if Excel is open and is in ready mode. The OnTime method of the Application object schedules "Macro1" to run at 09:45 AM. If you open this file run this macro at say 7:30 AM and save/close the file but keep Excel running, the file will automatically open at 9:45 and "Macro1" will run. You can experiment with this idea a bit more to get the desired effect. Sub ScheduleAMacro() Application.OnTime TimeValue("09:45:00"), "Macro1" End Sub Sub Macro1() MsgBox "It is time to run this macro." End Sub -- Anant "Finny" wrote: I have a workbook that I keep date material in. I am willing to have it open all day long to accomodate this but what I want is for a window to pop up when a condition is met within the sheet (e.g. a time of day is reached) without restoring the wrkbk. Ideally the workbook does not have to be open but I realize that may be asking a lot. Thanks in advance. Finn |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I copy formulas from 1 wrkbk to another w/o absolute refs | Excel Discussion (Misc queries) | |||
view 2 different worksheets within the Wrkbk | Excel Worksheet Functions | |||
Is it possible to ref a cell in another wrkbk w/o having to name t | Excel Programming | |||
Mult. wrkbk copy, from cell reference | Excel Programming | |||
Wrkbk already open by whom? | Excel Programming |