<?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: Classes: Application Events</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/06/15/classes-application-events/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/06/15/classes-application-events/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Tue, 07 Feb 2012 23:32:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Tushar Mehta</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/15/classes-application-events/#comment-19003</link>
		<dc:creator>Tushar Mehta</dc:creator>
		<pubDate>Sun, 26 Feb 2006 16:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=629#comment-19003</guid>
		<description>&lt;p&gt;Dick addresses a few important issues of why one should forsake events in worksheet and workbook code modules.  For more on the subject of raising and consuming events, see the draft&lt;br&gt;
Monitoring events&lt;br&gt;
&lt;a href=&quot;http://www.tushar-mehta.com/excel/vba/vba-XL%20events.htm&quot; rel=&quot;nofollow&quot;&gt;http://www.tushar-mehta.com/excel/vba/vba-XL%20events.htm&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick addresses a few important issues of why one should forsake events in worksheet and workbook code modules.  For more on the subject of raising and consuming events, see the draft<br />
Monitoring events<br />
<a href="http://www.tushar-mehta.com/excel/vba/vba-XL%20events.htm" rel="nofollow">http://www.tushar-mehta.com/excel/vba/vba-XL%20events.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gábor Horváth</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/15/classes-application-events/#comment-19001</link>
		<dc:creator>Gábor Horváth</dc:creator>
		<pubDate>Sun, 26 Feb 2006 15:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=629#comment-19001</guid>
		<description>&lt;p&gt;Hi!&lt;br&gt;
I tried this tip, it worked fine and was very usefull, but suddenly after certain actions I made, it worked no more!&lt;br&gt;
(For example: After pressing the &#039;Cancel&#039; button in a Dialog Box or an Input box.)&lt;br&gt;
First I tought, it is in connection with &quot;Cancel&quot; button.&lt;br&gt;
But the solution was in the code.&lt;br&gt;
If I write:&lt;br&gt;
***&lt;br&gt;
start= InputBox(&quot;Which is the start?&quot;)&lt;br&gt;
If start= &quot;&quot; Then End&lt;br&gt;
***&lt;br&gt;
This is wrong, because of this &#039;End&#039;, the above described &quot;SheetChange event&quot; works no more!&lt;br&gt;
But with this:&lt;br&gt;
***&lt;br&gt;
start= InputBox(&quot;Which is the start?&quot;)&lt;br&gt;
If start= &quot;&quot; Then goto endlabel&lt;br&gt;
***&lt;br&gt;
(The &quot;endlabel:&quot; is directly in the above line of the &#039;End Sub&#039;)&lt;/p&gt;
&lt;p&gt;The solution in summarized:&lt;/p&gt;
&lt;p&gt;Avoid the use of  &#039;End&#039; in your code, because it stops the execution of this &#039;Application&#039; event.&lt;br&gt;
(There is no explanation, it is only my experience.&lt;/p&gt;
&lt;p&gt;Gábor&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi!<br />
I tried this tip, it worked fine and was very usefull, but suddenly after certain actions I made, it worked no more!<br />
(For example: After pressing the &#8216;Cancel&#8217; button in a Dialog Box or an Input box.)<br />
First I tought, it is in connection with &#8220;Cancel&#8221; button.<br />
But the solution was in the code.<br />
If I write:<br />
***<br />
start= InputBox(&#8220;Which is the start?&#8221;)<br />
If start= &#8220;&#8221; Then End<br />
***<br />
This is wrong, because of this &#8216;End&#8217;, the above described &#8220;SheetChange event&#8221; works no more!<br />
But with this:<br />
***<br />
start= InputBox(&#8220;Which is the start?&#8221;)<br />
If start= &#8220;&#8221; Then goto endlabel<br />
***<br />
(The &#8220;endlabel:&#8221; is directly in the above line of the &#8216;End Sub&#8217;)</p>
<p>The solution in summarized:</p>
<p>Avoid the use of  &#8216;End&#8217; in your code, because it stops the execution of this &#8216;Application&#8217; event.<br />
(There is no explanation, it is only my experience.</p>
<p>Gábor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/15/classes-application-events/#comment-18946</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 21 Feb 2006 20:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=629#comment-18946</guid>
		<description>&lt;p&gt;What about an event to deal with the KeyPress event, if a &quot;smart&quot; user tries to delete a cell in a protected worksheet for instance?  I know that excel fires up a protected workbook/sheet dialoge but I would like to capture the event in a protected access database that my excel workbook uses for information for the various forms etc., I have done a Google search but no luck...&lt;/p&gt;
&lt;p&gt;Any ideas or do I need to think of perhaps another method?&lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What about an event to deal with the KeyPress event, if a &#8220;smart&#8221; user tries to delete a cell in a protected worksheet for instance?  I know that excel fires up a protected workbook/sheet dialoge but I would like to capture the event in a protected access database that my excel workbook uses for information for the various forms etc., I have done a Google search but no luck&#8230;</p>
<p>Any ideas or do I need to think of perhaps another method?</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arlene hoffman</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/15/classes-application-events/#comment-15548</link>
		<dc:creator>arlene hoffman</dc:creator>
		<pubDate>Sun, 17 Jul 2005 17:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=629#comment-15548</guid>
		<description>&lt;p&gt;Hi Rachel,&lt;/p&gt;
&lt;p&gt;our computer crashed and I lost all of my e-mail and skype addresses.  Could you please send me both of your addresses.&lt;br&gt;
Arlene&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Rachel,</p>
<p>our computer crashed and I lost all of my e-mail and skype addresses.  Could you please send me both of your addresses.<br />
Arlene</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/15/classes-application-events/#comment-4956</link>
		<dc:creator>Dick</dc:creator>
		<pubDate>Fri, 07 Jan 2005 15:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=629#comment-4956</guid>
		<description>&lt;p&gt;Rachel: I have plans to post more about class modules.  They take longer than the average post, so it&#039;s easy to procrastinate.  It&#039;s nice to know what you&#039;re looking for so I can tailor the post - and at least one person will find it useful.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Rachel: I have plans to post more about class modules.  They take longer than the average post, so it&#8217;s easy to procrastinate.  It&#8217;s nice to know what you&#8217;re looking for so I can tailor the post &#8211; and at least one person will find it useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rachel ravitsky</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/15/classes-application-events/#comment-4955</link>
		<dc:creator>rachel ravitsky</dc:creator>
		<pubDate>Fri, 07 Jan 2005 13:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=629#comment-4955</guid>
		<description>&lt;p&gt;it was interesting to read the article.&lt;br&gt;
do you have more about class modules, like is the number or class modules per workbook is restricted&lt;br&gt;
how do i set differenct class modules for openning&lt;br&gt;
a workbook and &quot;before closing&quot; a workbook,&lt;br&gt;
where the class modules are in &quot;personal&quot;&lt;br&gt;
do you have articles of how to create user objects,&lt;br&gt;
like for database in excel, and or database in excel&lt;br&gt;
to be inserted into sql sever database&lt;br&gt;
sorry for asking too mant questions and thanks for&lt;br&gt;
your attention&lt;br&gt;
rachel&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>it was interesting to read the article.<br />
do you have more about class modules, like is the number or class modules per workbook is restricted<br />
how do i set differenct class modules for openning<br />
a workbook and &#8220;before closing&#8221; a workbook,<br />
where the class modules are in &#8220;personal&#8221;<br />
do you have articles of how to create user objects,<br />
like for database in excel, and or database in excel<br />
to be inserted into sql sever database<br />
sorry for asking too mant questions and thanks for<br />
your attention<br />
rachel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin McKinney</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/15/classes-application-events/#comment-2966</link>
		<dc:creator>Kevin McKinney</dc:creator>
		<pubDate>Wed, 15 Dec 2004 22:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=629#comment-2966</guid>
		<description>&lt;p&gt;Dick,&lt;br&gt;
This is extremely useful to me -- I just used a variation on your code to add a useful function to my &quot;toolbox&quot; addin... I can use the keyboard to jump back to the last sheet I was on, and also to the last workbook.  I was able to jump between sheets before only by adding code to each workbook in which I wanted to do it, but this is far simpler.  Thanks!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick,<br />
This is extremely useful to me &#8212; I just used a variation on your code to add a useful function to my &#8220;toolbox&#8221; addin&#8230; I can use the keyboard to jump back to the last sheet I was on, and also to the last workbook.  I was able to jump between sheets before only by adding code to each workbook in which I wanted to do it, but this is far simpler.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuckles123</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/06/15/classes-application-events/#comment-2628</link>
		<dc:creator>Chuckles123</dc:creator>
		<pubDate>Wed, 24 Nov 2004 00:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=629#comment-2628</guid>
		<description>&lt;p&gt;I got this to work, only, by making two modifications:&lt;/p&gt;
&lt;p&gt;Changing the first line of code from&lt;br&gt;
&#039;Public gxlApp As Class1&#039; to&lt;br&gt;
&#039;Dim gxlApp As New Class1&#039; and&lt;/p&gt;
&lt;p&gt;by putting it in &#039;ThisWorkbook&#039; instead of&lt;br&gt;
in a standard Module.&lt;/p&gt;
&lt;p&gt;All of the other code and code storage locations are identical.&lt;/p&gt;
&lt;p&gt;I conjured these changes by:  looking at two other samples; and trial and error.  Definitely not from my limited knowledge of VBA.&lt;/p&gt;
&lt;p&gt;Now, my changes work when the code is stored in an .xlS file; however, my changes would not work when stored in an .xlA file.  (Note, this .xlA file is not installed as an &#039;AddIn&#039; in Excel.)&lt;/p&gt;
&lt;p&gt;Any comments?&lt;br&gt;
Chuckles123&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I got this to work, only, by making two modifications:</p>
<p>Changing the first line of code from<br />
&#8216;Public gxlApp As Class1&#8242; to<br />
&#8216;Dim gxlApp As New Class1&#8242; and</p>
<p>by putting it in &#8216;ThisWorkbook&#8217; instead of<br />
in a standard Module.</p>
<p>All of the other code and code storage locations are identical.</p>
<p>I conjured these changes by:  looking at two other samples; and trial and error.  Definitely not from my limited knowledge of VBA.</p>
<p>Now, my changes work when the code is stored in an .xlS file; however, my changes would not work when stored in an .xlA file.  (Note, this .xlA file is not installed as an &#8216;AddIn&#8217; in Excel.)</p>
<p>Any comments?<br />
Chuckles123</p>
]]></content:encoded>
	</item>
</channel>
</rss>

