ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can a min'zed wrkbk pop up an alert to the desktop w/o restoring the wrkbk? (https://www.excelbanter.com/excel-programming/377163-can-minzed-wrkbk-pop-up-alert-desktop-w-o-restoring-wrkbk.html)

Finny[_3_]

Can a min'zed wrkbk pop up an alert to the desktop w/o restoring the wrkbk?
 
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


Anant Basant

Can a min'zed wrkbk pop up an alert to the desktop w/o restoring t
 
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



Finny[_3_]

Can a min'zed wrkbk pop up an alert to the desktop w/o restoring t
 
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





All times are GMT +1. The time now is 06:48 AM.

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