Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Daily events
I am trying to copy DDE data froom one cell to another in a workbook on a
daily basis. I used the Ontime function in an Auto_Open() sub. When I open the workbook, the Ontime function runs the first day and does in fact copy the data. It does not run on subsequent days unless I close the workbook and reopen it. I may have the Ontime function in the wrong place or I may have to do some additional programming to reschedule susequent Ontime Events. Does anyone out there have any ideas? Thanks! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Daily events
OnTime is a one time event. If you want it to recurr the macro set to run
Ontime must set it again. Sub SetOnTime() Application.OnTime SomeTime, "RunByOnTime" End Sub Sub RunByOnTime() ''Doing my Thing Application.OnTime NextTime, "RunByOnTime" End Sub -- Jim "BillM" wrote in message ... |I am trying to copy DDE data froom one cell to another in a workbook on a | daily basis. I used the Ontime function in an Auto_Open() sub. When I open | the workbook, the Ontime function runs the first day and does in fact copy | the data. It does not run on subsequent days unless I close the workbook and | reopen it. I may have the Ontime function in the wrong place or I may have to | do some additional programming to reschedule susequent Ontime Events. Does | anyone out there have any ideas? Thanks! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Daily events
Thanks for the pointer.
"Jim Rech" wrote: OnTime is a one time event. If you want it to recurr the macro set to run Ontime must set it again. Sub SetOnTime() Application.OnTime SomeTime, "RunByOnTime" End Sub Sub RunByOnTime() ''Doing my Thing Application.OnTime NextTime, "RunByOnTime" End Sub -- Jim "BillM" wrote in message ... |I am trying to copy DDE data froom one cell to another in a workbook on a | daily basis. I used the Ontime function in an Auto_Open() sub. When I open | the workbook, the Ontime function runs the first day and does in fact copy | the data. It does not run on subsequent days unless I close the workbook and | reopen it. I may have the Ontime function in the wrong place or I may have to | do some additional programming to reschedule susequent Ontime Events. Does | anyone out there have any ideas? Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do I sort a spreadsheet of daily events into weekly totals? | Excel Worksheet Functions | |||
HOW DO I FREEZE DATA THAT CHANGES DAILY. dAILY/MONTHLY BUDGET | Excel Discussion (Misc queries) | |||
Linking Daily Worksheet To Daily Invoice Total | Excel Worksheet Functions | |||
Can I use VBA to automate the recording of daily events? | Excel Discussion (Misc queries) | |||
do events? background events | Excel Programming |