ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   time generated code (https://www.excelbanter.com/excel-discussion-misc-queries/168877-time-generated-code.html)

Steve

time generated code
 
Is it possible to, at the same time every day, open a workbook or recalc it
if it's already open, perform some test on a date field and if the condition
is true, generate a popup or msgbox? Can you make the message box appear on
top of all windows?

Bob Phillips

time generated code
 
Yeah, using OnTime. See http://www.cpearson.com/excel/ontime.htm

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Steve" wrote in message
...
Is it possible to, at the same time every day, open a workbook or recalc
it
if it's already open, perform some test on a date field and if the
condition
is true, generate a popup or msgbox? Can you make the message box appear
on
top of all windows?




Roger Converse[_2_]

time generated code
 
Check out the OnTime method in the VBA helpfile.

Here's a great overview from Chip Pearson: Scheduling Events With OnTime And
Windows Timers

Hope that helps,
Roger

"Steve" wrote:

Is it possible to, at the same time every day, open a workbook or recalc it
if it's already open, perform some test on a date field and if the condition
is true, generate a popup or msgbox? Can you make the message box appear on
top of all windows?



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

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