Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default 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
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
how do I sort a spreadsheet of daily events into weekly totals? polly Excel Worksheet Functions 1 September 24th 08 01:34 PM
HOW DO I FREEZE DATA THAT CHANGES DAILY. dAILY/MONTHLY BUDGET mike64149 Excel Discussion (Misc queries) 4 September 22nd 08 08:11 PM
Linking Daily Worksheet To Daily Invoice Total KJames Excel Worksheet Functions 1 March 18th 07 11:01 AM
Can I use VBA to automate the recording of daily events? Will Excel Discussion (Misc queries) 0 October 4th 06 05:55 AM
do events? background events cereldine[_15_] Excel Programming 1 April 12th 06 01:06 PM


All times are GMT +1. The time now is 02:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"