<?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: Late Bound Enumerations</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2009/04/05/late-bound-enumerations/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2009/04/05/late-bound-enumerations/</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: Bob Phillips</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/05/late-bound-enumerations/#comment-39018</link>
		<dc:creator>Bob Phillips</dc:creator>
		<pubDate>Sun, 19 Apr 2009 14:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2312#comment-39018</guid>
		<description>&lt;p&gt;Mike,&lt;/p&gt;
&lt;p&gt;I am a very keen user of enumerated lists, and there are other benefits even from defining your own.&lt;/p&gt;
&lt;p&gt;For instance, let us say that we have a list of return codes, a classic example of an enumerated list, that looks like so&lt;/p&gt;
&lt;p&gt;Enum appReturnCodes&lt;/p&gt;
&lt;p&gt;    All_OK = 0&lt;br&gt;
    Invalid_Input = -1&lt;br&gt;
    Process_Error = -2&lt;br&gt;
    Too_Few_Params = -3&lt;br&gt;
End Enum&lt;/p&gt;
&lt;p&gt;You can then create a variable with tha datatype, such&lt;/p&gt;
&lt;p&gt;Dim ReturnCode As appReturnCodes&lt;/p&gt;
&lt;p&gt;which is nice as a documemtary feature, but gets better because when you then lookto load that variable in the code, when you type&lt;/p&gt;
&lt;p&gt;    ReturnCode =&lt;/p&gt;
&lt;p&gt;the typing of the = sign invokes intellisense for that list, so you can select it rather than type it.&lt;/p&gt;
&lt;p&gt;Alls erious VBA coders should be using enumerated lists IMO.&lt;br&gt;
End Sub&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Mike,</p>
<p>I am a very keen user of enumerated lists, and there are other benefits even from defining your own.</p>
<p>For instance, let us say that we have a list of return codes, a classic example of an enumerated list, that looks like so</p>
<p>Enum appReturnCodes</p>
<p>    All_OK = 0<br />
    Invalid_Input = -1<br />
    Process_Error = -2<br />
    Too_Few_Params = -3<br />
End Enum</p>
<p>You can then create a variable with tha datatype, such</p>
<p>Dim ReturnCode As appReturnCodes</p>
<p>which is nice as a documemtary feature, but gets better because when you then lookto load that variable in the code, when you type</p>
<p>    ReturnCode =</p>
<p>the typing of the = sign invokes intellisense for that list, so you can select it rather than type it.</p>
<p>Alls erious VBA coders should be using enumerated lists IMO.<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/05/late-bound-enumerations/#comment-38939</link>
		<dc:creator>Ross</dc:creator>
		<pubDate>Tue, 14 Apr 2009 12:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2312#comment-38939</guid>
		<description>&lt;p&gt;If anyone in interested I also have a pallet tool thingy that might be of use:&lt;br&gt;
&lt;a href=&quot;http://www.blog.methodsinexcel.co.uk/2009/02/21/working-with-colours-in-excel-mie-colour-manager/&quot; rel=&quot;nofollow&quot;&gt;http://www.blog.methodsinexcel.co.uk/2009/02/21/working-with-colours-in-excel-mie-colour-manager/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And Sandy as one too:&lt;br&gt;
&lt;a href=&quot;http://excelwithmonarch.com/xlreport/better-excel-color-management&quot; rel=&quot;nofollow&quot;&gt;http://excelwithmonarch.com/xlreport/better-excel-color-management&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you looking to manage colours in Excel, then there are a few options!&lt;/p&gt;
&lt;p&gt;Not bad for a post on Enumerations!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If anyone in interested I also have a pallet tool thingy that might be of use:<br />
<a href="http://www.blog.methodsinexcel.co.uk/2009/02/21/working-with-colours-in-excel-mie-colour-manager/" rel="nofollow">http://www.blog.methodsinexcel.co.uk/2009/02/21/working-with-colours-in-excel-mie-colour-manager/</a></p>
<p>And Sandy as one too:<br />
<a href="http://excelwithmonarch.com/xlreport/better-excel-color-management" rel="nofollow">http://excelwithmonarch.com/xlreport/better-excel-color-management</a></p>
<p>If you looking to manage colours in Excel, then there are a few options!</p>
<p>Not bad for a post on Enumerations!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/05/late-bound-enumerations/#comment-38932</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Mon, 13 Apr 2009 00:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2312#comment-38932</guid>
		<description>&lt;p&gt;Mike -&lt;/p&gt;
&lt;p&gt;Sure, it&#039;s not real complicated. I have a palette changing utility in this article (no posted code, though):&lt;br&gt;
&lt;a title=&quot;Using Colors in Excel Charts&quot; href=&quot;http://peltiertech.com/WordPress/using-colors-in-excel-charts/&quot; rel=&quot;nofollow&quot;&gt;Using Colors in Excel Charts&lt;/a&gt;.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Mike -</p>
<p>Sure, it&#8217;s not real complicated. I have a palette changing utility in this article (no posted code, though):<br />
<a title="Using Colors in Excel Charts" href="http://peltiertech.com/WordPress/using-colors-in-excel-charts/" rel="nofollow">Using Colors in Excel Charts</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Alexander</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/05/late-bound-enumerations/#comment-38928</link>
		<dc:creator>Mike Alexander</dc:creator>
		<pubDate>Sun, 12 Apr 2009 01:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2312#comment-38928</guid>
		<description>&lt;p&gt;Very nice Bob.  I&#039;ve added these to the text file.&lt;br&gt;
Were did you find these constants?&lt;/p&gt;
&lt;p&gt;Thinking out loud....&lt;/p&gt;
&lt;p&gt;Could one ever automatically customize the color pallete using something similar?  Has anyone out there customized the color pallet using Automation?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Very nice Bob.  I&#8217;ve added these to the text file.<br />
Were did you find these constants?</p>
<p>Thinking out loud&#8230;.</p>
<p>Could one ever automatically customize the color pallete using something similar?  Has anyone out there customized the color pallet using Automation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Phillips</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/05/late-bound-enumerations/#comment-38926</link>
		<dc:creator>Bob Phillips</dc:creator>
		<pubDate>Sat, 11 Apr 2009 23:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2312#comment-38926</guid>
		<description>&lt;p&gt;Mike,&lt;/p&gt;
&lt;p&gt;I agree with you on the value of enumerated lists, but I have one that is not in your list. It isn&#039;t an Excel list, but should be, and whilst not specifically needed for late-binding I use it all the time.&lt;/p&gt;
&lt;p&gt;Public Enum xlColorIndex&lt;br&gt;
    xlCIBlack = 1&lt;br&gt;
    xlCIWhite = 2&lt;br&gt;
    xlCIRed = 3&lt;br&gt;
    xlCIBrightGreen = 4&lt;br&gt;
    xlCIBlue = 5&lt;br&gt;
    xlCIYellow = 6&lt;br&gt;
    xlCIPink = 7&lt;br&gt;
    xlCITurquoise = 8&lt;br&gt;
    xlCIDarkRed = 9&lt;br&gt;
    xlCIGreen = 10&lt;br&gt;
    xlCIDarkBlue = 11&lt;br&gt;
    xlCIDarkYellow = 12&lt;br&gt;
    xlCIViolet = 13&lt;br&gt;
    xlCITeal = 14&lt;br&gt;
    xlCIGray25 = 15&lt;br&gt;
    xlCIGray50 = 16&lt;br&gt;
    xlChartCIPeriwinkle = 17            &#039;------------------&lt;br&gt;
    xlChartCIPlum = 18                  &#039; chart colours&lt;br&gt;
    xlChartCIIvory = 19                 &#039;&lt;br&gt;
    xlChartCILightTurquoise = 20        &#039;&lt;br&gt;
    xlChartCIDarkPurple = 21            &#039;&lt;br&gt;
    xlChartCICoral = 22                 &#039;&lt;br&gt;
    xlChartCIOceanBlue = 23             &#039;&lt;br&gt;
    xlChartCIIceBlue = 24               &#039;&lt;br&gt;
    xlChartCIDarkBlue = 25              &#039;&lt;br&gt;
    xlChartCIPink = 26                  &#039;&lt;br&gt;
    xlChartCIYellow = 27                &#039;&lt;br&gt;
    xlChartCITurquoise = 28             &#039;&lt;br&gt;
    xlChartCIViolet = 29                &#039;&lt;br&gt;
    xlChartCIDarkRed = 30               &#039;&lt;br&gt;
    xlChartCITeal = 31                  &#039;&lt;br&gt;
    xlChartCIBlue = 32                  &#039;------------------&lt;br&gt;
    xlCISkyBlue = 33&lt;br&gt;
    xlCILightGreen = 35&lt;br&gt;
    xlCILightYellow = 36&lt;br&gt;
    xlCIPaleBlue = 37&lt;br&gt;
    xlCIRose = 38&lt;br&gt;
    xlCILavender = 39&lt;br&gt;
    xlCITan = 40&lt;br&gt;
    xlCILightBlue = 41&lt;br&gt;
    xlCIAqua = 42&lt;br&gt;
    xlCILime = 43&lt;br&gt;
    xlCIGold = 44&lt;br&gt;
    xlCILightOrange = 45&lt;br&gt;
    xlCIOrange = 46&lt;br&gt;
    xlCIBlueGray = 47&lt;br&gt;
    xlCIGray40 = 48&lt;br&gt;
    xlCIDarkTeal = 49&lt;br&gt;
    xlCISeaGreen = 50&lt;br&gt;
    xlCIDarkGreen = 51&lt;br&gt;
    xlCIBrown = 53&lt;br&gt;
    xlCIIndigo = 55&lt;br&gt;
    xlCIGray80 = 56&lt;br&gt;
End Enum&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Mike,</p>
<p>I agree with you on the value of enumerated lists, but I have one that is not in your list. It isn&#8217;t an Excel list, but should be, and whilst not specifically needed for late-binding I use it all the time.</p>
<p>Public Enum xlColorIndex<br />
    xlCIBlack = 1<br />
    xlCIWhite = 2<br />
    xlCIRed = 3<br />
    xlCIBrightGreen = 4<br />
    xlCIBlue = 5<br />
    xlCIYellow = 6<br />
    xlCIPink = 7<br />
    xlCITurquoise = 8<br />
    xlCIDarkRed = 9<br />
    xlCIGreen = 10<br />
    xlCIDarkBlue = 11<br />
    xlCIDarkYellow = 12<br />
    xlCIViolet = 13<br />
    xlCITeal = 14<br />
    xlCIGray25 = 15<br />
    xlCIGray50 = 16<br />
    xlChartCIPeriwinkle = 17            &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
    xlChartCIPlum = 18                  &#8216; chart colours<br />
    xlChartCIIvory = 19                 &#8216;<br />
    xlChartCILightTurquoise = 20        &#8216;<br />
    xlChartCIDarkPurple = 21            &#8216;<br />
    xlChartCICoral = 22                 &#8216;<br />
    xlChartCIOceanBlue = 23             &#8216;<br />
    xlChartCIIceBlue = 24               &#8216;<br />
    xlChartCIDarkBlue = 25              &#8216;<br />
    xlChartCIPink = 26                  &#8216;<br />
    xlChartCIYellow = 27                &#8216;<br />
    xlChartCITurquoise = 28             &#8216;<br />
    xlChartCIViolet = 29                &#8216;<br />
    xlChartCIDarkRed = 30               &#8216;<br />
    xlChartCITeal = 31                  &#8216;<br />
    xlChartCIBlue = 32                  &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
    xlCISkyBlue = 33<br />
    xlCILightGreen = 35<br />
    xlCILightYellow = 36<br />
    xlCIPaleBlue = 37<br />
    xlCIRose = 38<br />
    xlCILavender = 39<br />
    xlCITan = 40<br />
    xlCILightBlue = 41<br />
    xlCIAqua = 42<br />
    xlCILime = 43<br />
    xlCIGold = 44<br />
    xlCILightOrange = 45<br />
    xlCIOrange = 46<br />
    xlCIBlueGray = 47<br />
    xlCIGray40 = 48<br />
    xlCIDarkTeal = 49<br />
    xlCISeaGreen = 50<br />
    xlCIDarkGreen = 51<br />
    xlCIBrown = 53<br />
    xlCIIndigo = 55<br />
    xlCIGray80 = 56<br />
End Enum</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/05/late-bound-enumerations/#comment-38799</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Mon, 06 Apr 2009 17:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2312#comment-38799</guid>
		<description>&lt;p&gt;Fantastic technique! FAN.TAS.TIC!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Fantastic technique! FAN.TAS.TIC!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

