Application.OnTime

albatross32

New Member
Joined
Feb 17, 2010
Messages
32
I need help with Application.OnTime code. Most of the online examples of code for this application use Now + TimeValue for the ‘earliest time’ definition. In my workbook I have three time values - Now, the start time for the event and a countdown timer to the start time.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p> </o:p>
My macro is simply going to call for a single refresh of web based input data. So I need an OnTime code that is going to trigger the macro at a specific time in the future. In layman’s terms my ‘OnTime’ will be Now + Countdown time because those two times added together will equal the start time of the event.
<o:p> </o:p>
The whole point of the exercise is to have a fully automatic set up so I do not want to have to manually insert any information. As soon as the workbook is connected I need it to set up a single refresh of the web based input data timed for the start time of the event.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,215,506
Messages
6,125,189
Members
449,213
Latest member
Kirbito

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top