<?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: Exposing VBA code through Excel objects</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/06/17/exposing-vba-code-through-excel-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/06/17/exposing-vba-code-through-excel-objects/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: excelthoughts</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/17/exposing-vba-code-through-excel-objects/#comment-14240</link>
		<dc:creator>excelthoughts</dc:creator>
		<pubDate>Wed, 22 Jun 2005 07:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1169#comment-14240</guid>
		<description>&lt;p&gt;Stephen,&lt;/p&gt;
&lt;p&gt;This is incredibly useful for my work. (I am constantly having Application.Run problems).&lt;/p&gt;
&lt;p&gt;I am looking forward to receiving your book in the mail (Professional Excel Development)&lt;/p&gt;
&lt;p&gt;Andrew&lt;br&gt;
excelthoughts.com&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Stephen,</p>
<p>This is incredibly useful for my work. (I am constantly having Application.Run problems).</p>
<p>I am looking forward to receiving your book in the mail (Professional Excel Development)</p>
<p>Andrew<br />
excelthoughts.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/17/exposing-vba-code-through-excel-objects/#comment-14239</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Wed, 22 Jun 2005 05:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1169#comment-14239</guid>
		<description>&lt;p&gt;This post was very informative, and helpful to me in an indirect way.  I&#039;ve been pairing addins with workbooks, but don&#039;t want any code in the workbooks (otherwise after reading this post I would have done what Alex suggests above).  I was using defined names in the workbooks, but when I read Stephen&#039;s comment about their susceptibility to alteration I went in another direction.  I&#039;m now using matching VBProject names.  So the main application addin checks each workbook that&#039;s activated/deactivated to see if it&#039;s VBProject name matches that of an addin in the same folder.  If they match it creates a menu for the workbook based on code stored in the matching addin.&lt;/p&gt;
&lt;p&gt;Anyways, thanks Stephen.  BTW, reading your book the other day helped me understand how to return more than one argument from a function (if that&#039;s the right way to say it) by passing parameters ByRef.  Very cool, my validation code is now much more concise.  It&#039;s interesting how as I learn new things the code gets shorter.  2 weeks later and there&#039;s only a couple of screenfuls...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This post was very informative, and helpful to me in an indirect way.  I&#8217;ve been pairing addins with workbooks, but don&#8217;t want any code in the workbooks (otherwise after reading this post I would have done what Alex suggests above).  I was using defined names in the workbooks, but when I read Stephen&#8217;s comment about their susceptibility to alteration I went in another direction.  I&#8217;m now using matching VBProject names.  So the main application addin checks each workbook that&#8217;s activated/deactivated to see if it&#8217;s VBProject name matches that of an addin in the same folder.  If they match it creates a menu for the workbook based on code stored in the matching addin.</p>
<p>Anyways, thanks Stephen.  BTW, reading your book the other day helped me understand how to return more than one argument from a function (if that&#8217;s the right way to say it) by passing parameters ByRef.  Very cool, my validation code is now much more concise.  It&#8217;s interesting how as I learn new things the code gets shorter.  2 weeks later and there&#8217;s only a couple of screenfuls&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex J</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/17/exposing-vba-code-through-excel-objects/#comment-14237</link>
		<dc:creator>Alex J</dc:creator>
		<pubDate>Wed, 22 Jun 2005 04:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1169#comment-14237</guid>
		<description>&lt;p&gt;So could this be done with add-ins (meaning the showname code would be in the add-in and called from a workbook)? Might be a nice way to invoke add-in functions.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>So could this be done with add-ins (meaning the showname code would be in the add-in and called from a workbook)? Might be a nice way to invoke add-in functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XL-Dennis</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/17/exposing-vba-code-through-excel-objects/#comment-14212</link>
		<dc:creator>XL-Dennis</dc:creator>
		<pubDate>Sun, 19 Jun 2005 00:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1169#comment-14212</guid>
		<description>&lt;p&gt;Gentlemen - You get things to look so very simple :)&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br&gt;
Dennis&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Gentlemen &#8211; You get things to look so very simple <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks!</p>
<p>Kind regards,<br />
Dennis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Hager</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/17/exposing-vba-code-through-excel-objects/#comment-14210</link>
		<dc:creator>David Hager</dc:creator>
		<pubDate>Sat, 18 Jun 2005 22:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1169#comment-14210</guid>
		<description>&lt;p&gt;As always, Iím sure that Stephen is being generous in allowing someone else to point out that this same methodology can also be applied to function procedures .&lt;/p&gt;
&lt;p&gt;Place the following simple function in key sheet modules:&lt;/p&gt;
&lt;p&gt;Function Mult(a, b)&lt;/p&gt;
&lt;p&gt;    Mult = a * b&lt;/p&gt;
&lt;p&gt;End Function&lt;/p&gt;
&lt;p&gt;Then, place this function in a standard module:&lt;/p&gt;
&lt;p&gt;Function MultipleFuncResult(m, n)&lt;/p&gt;
&lt;p&gt; On Error Resume Next&lt;/p&gt;
&lt;p&gt; For Each wks In ThisWorkbook.Worksheets&lt;br&gt;
MultipleFuncResult = _&lt;br&gt;
MultipleFuncResult + wks.Mult(wks.Range(mwks.Range(n))&lt;br&gt;
 Next&lt;/p&gt;
&lt;p&gt;End Function&lt;/p&gt;
&lt;p&gt;Finally, enter =MultipleFuncResult(ìa1î, ìa2î) in a worksheet cell. The cumulative result of the this function will only come from those worksheets that have a Mult function in its sheet module.&lt;/p&gt;
&lt;p&gt;Thanks, Stephen!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>As always, Iím sure that Stephen is being generous in allowing someone else to point out that this same methodology can also be applied to function procedures .</p>
<p>Place the following simple function in key sheet modules:</p>
<p>Function Mult(a, b)</p>
<p>    Mult = a * b</p>
<p>End Function</p>
<p>Then, place this function in a standard module:</p>
<p>Function MultipleFuncResult(m, n)</p>
<p> On Error Resume Next</p>
<p> For Each wks In ThisWorkbook.Worksheets<br />
MultipleFuncResult = _<br />
MultipleFuncResult + wks.Mult(wks.Range(mwks.Range(n))<br />
 Next</p>
<p>End Function</p>
<p>Finally, enter =MultipleFuncResult(ìa1î, ìa2î) in a worksheet cell. The cumulative result of the this function will only come from those worksheets that have a Mult function in its sheet module.</p>
<p>Thanks, Stephen!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/17/exposing-vba-code-through-excel-objects/#comment-14209</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Sat, 18 Jun 2005 21:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1169#comment-14209</guid>
		<description>&lt;p&gt;Nice catch Stephen, One to remember and use!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice catch Stephen, One to remember and use!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

