<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The OnTime Method</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: cristi</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/#comment-66918</link>
		<dc:creator>cristi</dc:creator>
		<pubDate>Tue, 11 Oct 2011 21:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=701#comment-66918</guid>
		<description>&lt;p&gt;Sorry for the 3 years delay:)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sorry for the 3 years delay:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cristi</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/#comment-66917</link>
		<dc:creator>cristi</dc:creator>
		<pubDate>Tue, 11 Oct 2011 21:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=701#comment-66917</guid>
		<description>&lt;p&gt;Mark,&lt;br&gt;
The problem is that you have to specify the sheet in front of the function. Like this, for example : &quot;sheet1.nextorders&quot;.&lt;br&gt;
I hope this was useful for you.&lt;/p&gt;
&lt;p&gt;sub nextorders()&lt;br&gt;
 startTimer&lt;br&gt;
 end sub&lt;/p&gt;
&lt;p&gt;sub startTimer()&lt;br&gt;
 Application.OnTime Now + TimeValue(&quot;00:00:2?), &quot;nextorders&quot;&lt;br&gt;
 end sub&lt;/p&gt;
&lt;p&gt;This doesn&#039;t work for me!!!&lt;br&gt;
 CANNOT RUN THE MACRO &quot;D:BOOK1.XLSM&#039;!NEXTORDERS&#039;. THE MACRO MAY NOT BE AVAILABLE IN THIS WORKBOOK OR ALL MACROS MAY BE DISABLED.&lt;/p&gt;
&lt;p&gt;wth?? All macros are enabled, what&#039;s the problem??&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Mark,<br />
The problem is that you have to specify the sheet in front of the function. Like this, for example : &#8220;sheet1.nextorders&#8221;.<br />
I hope this was useful for you.</p>
<p>sub nextorders()<br />
 startTimer<br />
 end sub</p>
<p>sub startTimer()<br />
 Application.OnTime Now + TimeValue(&#8220;00:00:2?), &#8220;nextorders&#8221;<br />
 end sub</p>
<p>This doesn&#8217;t work for me!!!<br />
 CANNOT RUN THE MACRO &#8220;D:BOOK1.XLSM&#8217;!NEXTORDERS&#8217;. THE MACRO MAY NOT BE AVAILABLE IN THIS WORKBOOK OR ALL MACROS MAY BE DISABLED.</p>
<p>wth?? All macros are enabled, what&#8217;s the problem??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DIG</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/#comment-65950</link>
		<dc:creator>DIG</dc:creator>
		<pubDate>Wed, 31 Aug 2011 16:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=701#comment-65950</guid>
		<description>&lt;p&gt;marc says:&lt;br&gt;
March 29, 2008 at 8:04 pm&lt;br&gt;
sub nextorders()&lt;br&gt;
startTimer&lt;br&gt;
end sub&lt;/p&gt;
&lt;p&gt;sub startTimer()&lt;br&gt;
Application.OnTime Now + TimeValue(&quot;00:00:2?), &quot;nextorders&quot;&lt;br&gt;
end sub&lt;/p&gt;
&lt;p&gt;This doesn&#039;t work for me!!!&lt;br&gt;
CANNOT RUN THE MACRO &quot;D:BOOK1.XLSM&#039;!NEXTORDERS&#039;. THE MACRO MAY NOT BE AVAILABLE IN THIS WORKBOOK OR ALL MACROS MAY BE DISABLED.&lt;/p&gt;
&lt;p&gt;wth?? All macros are enabled, what&#039;s the problem??&lt;/p&gt;
&lt;p&gt;sub nextorders()&lt;br&gt;
Application.OnTime Now + TimeValue(&quot;00:00:00?), &quot;startTimer&quot;&lt;br&gt;
end sub&lt;/p&gt;
&lt;p&gt;sub startTimer()&lt;br&gt;
Application.OnTime Now + TimeValue(&quot;00:00:(HEREISTHEPROBLEM)2?), &quot;nextorders&quot;&lt;br&gt;
end sub&lt;/p&gt;
&lt;p&gt;&gt;&gt;&gt;&gt;&lt;/p&gt;
&lt;p&gt;sub startTimer()&lt;br&gt;
Application.OnTime Now + TimeValue(&quot;00:00:02?), &quot;nextorders&quot;&lt;br&gt;
end sub&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>marc says:<br />
March 29, 2008 at 8:04 pm<br />
sub nextorders()<br />
startTimer<br />
end sub</p>
<p>sub startTimer()<br />
Application.OnTime Now + TimeValue(&#8220;00:00:2?), &#8220;nextorders&#8221;<br />
end sub</p>
<p>This doesn&#8217;t work for me!!!<br />
CANNOT RUN THE MACRO &#8220;D:BOOK1.XLSM&#8217;!NEXTORDERS&#8217;. THE MACRO MAY NOT BE AVAILABLE IN THIS WORKBOOK OR ALL MACROS MAY BE DISABLED.</p>
<p>wth?? All macros are enabled, what&#8217;s the problem??</p>
<p>sub nextorders()<br />
Application.OnTime Now + TimeValue(&#8220;00:00:00?), &#8220;startTimer&#8221;<br />
end sub</p>
<p>sub startTimer()<br />
Application.OnTime Now + TimeValue(&#8220;00:00:(HEREISTHEPROBLEM)2?), &#8220;nextorders&#8221;<br />
end sub</p>
<p>&gt;&gt;&gt;&gt;</p>
<p>sub startTimer()<br />
Application.OnTime Now + TimeValue(&#8220;00:00:02?), &#8220;nextorders&#8221;<br />
end sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fenik</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/#comment-53527</link>
		<dc:creator>Fenik</dc:creator>
		<pubDate>Sun, 31 Oct 2010 23:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=701#comment-53527</guid>
		<description>&lt;p&gt;Hello&lt;br&gt;
I need help to write code in VBA. My cod in VB 6 is working, but in VBA vipWin i dont have time control like in VB 6... I am really struggling with this for days. I have created serial communication for RFID in VB 6 with MSCom and Timer, but VBA doesn&#039;t have timer... PLS HELP!!!! This is my code for communication in VB 6 with timer and MSComm:&lt;br&gt;
Private Sub MSComm()&lt;br&gt;
T1.Enabled = True&lt;br&gt;
end Sub&lt;/p&gt;
&lt;p&gt;Private Sub T1_Timer()&lt;/p&gt;
&lt;p&gt;Dim buffer As Variant&lt;br&gt;
Dim i As Integer&lt;br&gt;
Dim Arrbyte() As Byte&lt;br&gt;
Dim iTemp As Integer&lt;br&gt;
Dim sTemp As String&lt;br&gt;
Dim strINPUT As String&lt;br&gt;
Dim info As String&lt;/p&gt;
&lt;p&gt;If cmbTimes.ListIndex = 0 And optIdentify.Value = True Then&lt;br&gt;
T1.Enabled = True&lt;br&gt;
Else&lt;br&gt;
T1.Enabled = False&lt;br&gt;
End If&lt;/p&gt;
&lt;p&gt;If ViseKartica = True Then&lt;br&gt;
If prababa = False And cmbTimes.ListIndex = 0 Then&lt;br&gt;
    MSComm.Output = Chr(&quot;&amp;H&quot; &amp; &quot;0A&quot;) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;FF&quot;) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;02?) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;44?) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;B1?)                                &#039;Ciscenje bafera&lt;br&gt;
    prababa = True&lt;br&gt;
ElseIf cmbTimes.ListIndex  0 Then&lt;br&gt;
    MSComm.Output = Chr(&quot;&amp;H&quot; &amp; &quot;0A&quot;) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;FF&quot;) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;02?) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;44?) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;B1?)&lt;br&gt;
End If&lt;br&gt;
    MSComm.Output = Chr(&quot;&amp;H&quot; &amp; &quot;0A&quot;) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;FF&quot;) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;02?) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;80?) &amp; Chr(&quot;&amp;H&quot; &amp; &quot;75?)                                &#039;Identifikacija&lt;/p&gt;
&lt;p&gt;Command5.Caption = brojac&lt;/p&gt;
&lt;p&gt;If cmbTimes.ListIndex = 0 Then&lt;br&gt;
    cmdIdentify.Enabled = False&lt;br&gt;
    cmdStop.Enabled = True&lt;br&gt;
Else&lt;br&gt;
    cmbTimes.ListIndex = brojac&lt;br&gt;
If brojac &lt; 1 Then&lt;br&gt;
    cmbTimes.Locked = False&lt;br&gt;
    cmbInterval.Locked = False&lt;br&gt;
    T1.Enabled = False&lt;br&gt;
    cmdIdentify.Enabled = True&lt;br&gt;
    cmdStop.Enabled = False&lt;/p&gt;
&lt;p&gt;Pls help to solve this issue !!!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello<br />
I need help to write code in VBA. My cod in VB 6 is working, but in VBA vipWin i dont have time control like in VB 6&#8230; I am really struggling with this for days. I have created serial communication for RFID in VB 6 with MSCom and Timer, but VBA doesn&#8217;t have timer&#8230; PLS HELP!!!! This is my code for communication in VB 6 with timer and MSComm:<br />
Private Sub MSComm()<br />
T1.Enabled = True<br />
end Sub</p>
<p>Private Sub T1_Timer()</p>
<p>Dim buffer As Variant<br />
Dim i As Integer<br />
Dim Arrbyte() As Byte<br />
Dim iTemp As Integer<br />
Dim sTemp As String<br />
Dim strINPUT As String<br />
Dim info As String</p>
<p>If cmbTimes.ListIndex = 0 And optIdentify.Value = True Then<br />
T1.Enabled = True<br />
Else<br />
T1.Enabled = False<br />
End If</p>
<p>If ViseKartica = True Then<br />
If prababa = False And cmbTimes.ListIndex = 0 Then<br />
    MSComm.Output = Chr(&#8220;&amp;H&#8221; &amp; &#8220;0A&#8221;) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;FF&#8221;) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;02?) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;44?) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;B1?)                                &#8216;Ciscenje bafera<br />
    prababa = True<br />
ElseIf cmbTimes.ListIndex  0 Then<br />
    MSComm.Output = Chr(&#8220;&amp;H&#8221; &amp; &#8220;0A&#8221;) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;FF&#8221;) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;02?) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;44?) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;B1?)<br />
End If<br />
    MSComm.Output = Chr(&#8220;&amp;H&#8221; &amp; &#8220;0A&#8221;) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;FF&#8221;) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;02?) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;80?) &amp; Chr(&#8220;&amp;H&#8221; &amp; &#8220;75?)                                &#8216;Identifikacija</p>
<p>Command5.Caption = brojac</p>
<p>If cmbTimes.ListIndex = 0 Then<br />
    cmdIdentify.Enabled = False<br />
    cmdStop.Enabled = True<br />
Else<br />
    cmbTimes.ListIndex = brojac<br />
If brojac &lt; 1 Then<br />
    cmbTimes.Locked = False<br />
    cmbInterval.Locked = False<br />
    T1.Enabled = False<br />
    cmdIdentify.Enabled = True<br />
    cmdStop.Enabled = False</p>
<p>Pls help to solve this issue !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhippiescientist</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/#comment-51585</link>
		<dc:creator>madhippiescientist</dc:creator>
		<pubDate>Fri, 01 Oct 2010 06:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=701#comment-51585</guid>
		<description>&lt;p&gt;I am using an excel worksheet tag to signify that a waittime function&lt;br&gt;
has been called, so if the user re-opens the workbook (which saved the&lt;br&gt;
tag), it just restarts the waittime. The purpose, is if a user misses&lt;br&gt;
three password entries for their sign-in w/in my workbook, it locks them&lt;br&gt;
out of the &quot;application&quot; until the time passes. On their first missed&lt;br&gt;
entry, they&#039;re given the option to quit trying to sign-in, but one of&lt;br&gt;
the three strikes is logged. After 10 minutes, I want the tag to reset.&lt;br&gt;
If the workbook is re-started, say through computer shut-down, the open&lt;br&gt;
workbook function re-starts the timeout, if three strikes exist. But if&lt;br&gt;
I don&#039;t reset the tag after 10 minutes of the sign-in sheet sitting idle,&lt;br&gt;
then 2 more attempts, even if deciding to cancel attempted sign-in, will&lt;br&gt;
call the time-out. If a user successfully signs in, it will be reset.&lt;br&gt;
I need an on-time function, that if the one or two strikes are tagged,&lt;br&gt;
and the sign-in sheet sits idle (no objects clicked / only objects are&lt;br&gt;
available on that worksheet), the tag will be reset to &quot;0?. But if a&lt;br&gt;
user happens to click an object (all of which don&#039;t run their macro by&lt;br&gt;
determination of time-out in their macro&#039;s first few lines), just as the&lt;br&gt;
ontime macro gets called, I don&#039;t want an error. Kinda like making sure&lt;br&gt;
the ontime macro runs after whatever code is already being executed. I&lt;br&gt;
saw something to the like in the previous posts, I just want to make sure&lt;br&gt;
I am reading it right, and that it would be executed everytime...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am using an excel worksheet tag to signify that a waittime function<br />
has been called, so if the user re-opens the workbook (which saved the<br />
tag), it just restarts the waittime. The purpose, is if a user misses<br />
three password entries for their sign-in w/in my workbook, it locks them<br />
out of the &#8220;application&#8221; until the time passes. On their first missed<br />
entry, they&#8217;re given the option to quit trying to sign-in, but one of<br />
the three strikes is logged. After 10 minutes, I want the tag to reset.<br />
If the workbook is re-started, say through computer shut-down, the open<br />
workbook function re-starts the timeout, if three strikes exist. But if<br />
I don&#8217;t reset the tag after 10 minutes of the sign-in sheet sitting idle,<br />
then 2 more attempts, even if deciding to cancel attempted sign-in, will<br />
call the time-out. If a user successfully signs in, it will be reset.<br />
I need an on-time function, that if the one or two strikes are tagged,<br />
and the sign-in sheet sits idle (no objects clicked / only objects are<br />
available on that worksheet), the tag will be reset to &#8220;0?. But if a<br />
user happens to click an object (all of which don&#8217;t run their macro by<br />
determination of time-out in their macro&#8217;s first few lines), just as the<br />
ontime macro gets called, I don&#8217;t want an error. Kinda like making sure<br />
the ontime macro runs after whatever code is already being executed. I<br />
saw something to the like in the previous posts, I just want to make sure<br />
I am reading it right, and that it would be executed everytime&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/#comment-50068</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Wed, 08 Sep 2010 03:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=701#comment-50068</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have one excel sheet which has ontime event of 5 mins to run some code.&lt;/p&gt;
&lt;p&gt;This code works fine when in debugging mode. But if I lock my PC or minimize excel windows and  start working something else, this code just pauses at beginning and as soon as I activate excel window, this code runs.&lt;/p&gt;
&lt;p&gt;This code involves opening and closing of one userform and i think userform is culprit.&lt;/p&gt;
&lt;p&gt;Pls help to solve this issue as this fails my whole automation idea....&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have one excel sheet which has ontime event of 5 mins to run some code.</p>
<p>This code works fine when in debugging mode. But if I lock my PC or minimize excel windows and  start working something else, this code just pauses at beginning and as soon as I activate excel window, this code runs.</p>
<p>This code involves opening and closing of one userform and i think userform is culprit.</p>
<p>Pls help to solve this issue as this fails my whole automation idea&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis J</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/#comment-48953</link>
		<dc:creator>Dennis J</dc:creator>
		<pubDate>Sat, 14 Aug 2010 20:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=701#comment-48953</guid>
		<description>&lt;p&gt;Two questions:&lt;br&gt;
1.&lt;br&gt;
Have written Application.OnTime macro that works;  however, I must close the worksheet and reopen it, enabling macros, before it WILL work.  If I change the execution time, or any other change to the macro, I must close and reopen again.  I want to insert a check box onto my Excel spreadsheet that will allow me to enter an execution time for the OnTime macro to run, and then have it run at that time without having to close and reopen the worksheet every time.&lt;/p&gt;
&lt;p&gt;2.&lt;br&gt;
How can I get the time provided either through the check box or InputBox to be utilized in the Application.OnTime statement?&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Two questions:<br />
1.<br />
Have written Application.OnTime macro that works;  however, I must close the worksheet and reopen it, enabling macros, before it WILL work.  If I change the execution time, or any other change to the macro, I must close and reopen again.  I want to insert a check box onto my Excel spreadsheet that will allow me to enter an execution time for the OnTime macro to run, and then have it run at that time without having to close and reopen the worksheet every time.</p>
<p>2.<br />
How can I get the time provided either through the check box or InputBox to be utilized in the Application.OnTime statement?</p>
<p>Thank you for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ed</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/#comment-40236</link>
		<dc:creator>ed</dc:creator>
		<pubDate>Mon, 13 Jul 2009 18:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=701#comment-40236</guid>
		<description>&lt;p&gt;I would like to use OnTime to schedule an cancel events. But in my application, I can not trust that VBA will remember global variables. VBA may crash or be stopped and lose the global values. So I may need to cancel events with out knowledge of when they were scheduled.&lt;/p&gt;
&lt;p&gt;Is there some DLL that exposes an interface to the Windows event queue that would allow me to inspect all currently-scheduled events?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I would like to use OnTime to schedule an cancel events. But in my application, I can not trust that VBA will remember global variables. VBA may crash or be stopped and lose the global values. So I may need to cancel events with out knowledge of when they were scheduled.</p>
<p>Is there some DLL that exposes an interface to the Windows event queue that would allow me to inspect all currently-scheduled events?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Surajit</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/#comment-39363</link>
		<dc:creator>Surajit</dc:creator>
		<pubDate>Sat, 16 May 2009 08:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=701#comment-39363</guid>
		<description>&lt;p&gt;But, there all codes to be written plz specify someone&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>But, there all codes to be written plz specify someone</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rylo</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/07/30/the-ontime-method/#comment-37457</link>
		<dc:creator>rylo</dc:creator>
		<pubDate>Thu, 22 Jan 2009 04:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=701#comment-37457</guid>
		<description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This won&#039;t give you a list of programs, but if you have a list of possible programs, this will allow you to nominate your program name, and, if it has been scheduled, show when it was scheduled.  Just run the program for each of your possibles by changing the value of the variable thisprog.  In the current code, it looks for a program called &quot;bbb&quot;&lt;/p&gt;
&lt;p&gt;HTH&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; ccc()&lt;br&gt;
&lt;span class=&quot;co1&quot;&gt;&#039;nominate the name of the program you want to check&lt;br&gt;
&lt;/span&gt; &#160;thisprog = &lt;span class=&quot;st0&quot;&gt;&quot;bbb&quot;&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;On&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Error&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Resume&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; h = 0 &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; 23&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; i = 0 &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; 59&lt;br&gt;
&#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; j = 0 &lt;span class=&quot;kw1&quot;&gt;To&lt;/span&gt; 59&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;co1&quot;&gt;&#039;remove the scheduled ontime activity&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160;Application.OnTime TimeValue(Format(h, &lt;span class=&quot;st0&quot;&gt;&quot;00&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot;:&quot;&lt;/span&gt; &amp; Format(i, &lt;span class=&quot;st0&quot;&gt;&quot;00&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot;:&quot;&lt;/span&gt; &amp; Format(j, &lt;span class=&quot;st0&quot;&gt;&quot;00&quot;&lt;/span&gt;)), thisprog, , &lt;span class=&quot;kw1&quot;&gt;False&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt; Err.Number = 0 &lt;span class=&quot;kw1&quot;&gt;Then&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;co1&quot;&gt;&#039;record the name and time of the program&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160; &#160;Cells(Rows.Count, 1).&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt;(xlUp).Offset(1, 0).Value = TimeValue(Format(h, &lt;span class=&quot;st0&quot;&gt;&quot;00&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot;:&quot;&lt;/span&gt; &amp; Format(i, &lt;span class=&quot;st0&quot;&gt;&quot;00&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot;:&quot;&lt;/span&gt; &amp; Format(j, &lt;span class=&quot;st0&quot;&gt;&quot;00&quot;&lt;/span&gt;))&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; Cells(Rows.Count, 1).&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt;(xlUp).Offset(0, 1).Value = thisprog&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;co1&quot;&gt;&#039;restate the ontime program&lt;br&gt;
&lt;/span&gt; &#160; &#160; &#160; &#160; &#160;Application.OnTime TimeValue(Format(h, &lt;span class=&quot;st0&quot;&gt;&quot;00&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot;:&quot;&lt;/span&gt; &amp; Format(i, &lt;span class=&quot;st0&quot;&gt;&quot;00&quot;&lt;/span&gt;) &amp; &lt;span class=&quot;st0&quot;&gt;&quot;:&quot;&lt;/span&gt; &amp; Format(j, &lt;span class=&quot;st0&quot;&gt;&quot;00&quot;&lt;/span&gt;)), thisprog&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;If&lt;/span&gt;&lt;br&gt;
&#160; &#160; &#160; &#160; Err.Clear&lt;br&gt;
&#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; j&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; i&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt; h&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;On&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Error&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;GoTo&lt;/span&gt; 0&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>This won&#8217;t give you a list of programs, but if you have a list of possible programs, this will allow you to nominate your program name, and, if it has been scheduled, show when it was scheduled.  Just run the program for each of your possibles by changing the value of the variable thisprog.  In the current code, it looks for a program called &#8220;bbb&#8221;</p>
<p>HTH</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Sub</span> ccc()<br />
<span class="co1">&#8216;nominate the name of the program you want to check<br />
</span> &nbsp;thisprog = <span class="st0">&#8220;bbb&#8221;</span><br />
&nbsp; <span class="kw1">On</span> <span class="kw1">Error</span> <span class="kw1">Resume</span> <span class="kw1">Next</span><br />
&nbsp; <span class="kw1">For</span> h = 0 <span class="kw1">To</span> 23<br />
&nbsp; &nbsp; <span class="kw1">For</span> i = 0 <span class="kw1">To</span> 59<br />
&nbsp; &nbsp; &nbsp; <span class="kw1">For</span> j = 0 <span class="kw1">To</span> 59<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8216;remove the scheduled ontime activity<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp;Application.OnTime TimeValue(Format(h, <span class="st0">&#8220;00&#8243;</span>) &amp;amp; <span class="st0">&#8220;:&#8221;</span> &amp;amp; Format(i, <span class="st0">&#8220;00&#8243;</span>) &amp;amp; <span class="st0">&#8220;:&#8221;</span> &amp;amp; Format(j, <span class="st0">&#8220;00&#8243;</span>)), thisprog, , <span class="kw1">False</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> Err.Number = 0 <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8216;record the name and time of the program<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Cells(Rows.Count, 1).<span class="kw1">End</span>(xlUp).Offset(1, 0).Value = TimeValue(Format(h, <span class="st0">&#8220;00&#8243;</span>) &amp;amp; <span class="st0">&#8220;:&#8221;</span> &amp;amp; Format(i, <span class="st0">&#8220;00&#8243;</span>) &amp;amp; <span class="st0">&#8220;:&#8221;</span> &amp;amp; Format(j, <span class="st0">&#8220;00&#8243;</span>))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cells(Rows.Count, 1).<span class="kw1">End</span>(xlUp).Offset(0, 1).Value = thisprog<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">&#8216;restate the ontime program<br />
</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Application.OnTime TimeValue(Format(h, <span class="st0">&#8220;00&#8243;</span>) &amp;amp; <span class="st0">&#8220;:&#8221;</span> &amp;amp; Format(i, <span class="st0">&#8220;00&#8243;</span>) &amp;amp; <span class="st0">&#8220;:&#8221;</span> &amp;amp; Format(j, <span class="st0">&#8220;00&#8243;</span>)), thisprog<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Err.Clear<br />
&nbsp; &nbsp; &nbsp; <span class="kw1">Next</span> j<br />
&nbsp; &nbsp; <span class="kw1">Next</span> i<br />
&nbsp; <span class="kw1">Next</span> h<br />
&nbsp; <span class="kw1">On</span> <span class="kw1">Error</span> <span class="kw1">GoTo</span> 0<br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
]]></content:encoded>
	</item>
</channel>
</rss>

