<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>User Defined Functions In VBA</title>
	<atom:link href="http://userdefinedfunctionsinvba.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://userdefinedfunctionsinvba.wordpress.com</link>
	<description>--- UDFs in VBA ---</description>
	<lastBuildDate>Tue, 27 Oct 2009 13:16:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='userdefinedfunctionsinvba.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>User Defined Functions In VBA</title>
		<link>http://userdefinedfunctionsinvba.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://userdefinedfunctionsinvba.wordpress.com/osd.xml" title="User Defined Functions In VBA" />
	<atom:link rel='hub' href='http://userdefinedfunctionsinvba.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Cell Has Data Validation</title>
		<link>http://userdefinedfunctionsinvba.wordpress.com/2009/10/27/cell-has-data-validation-2/</link>
		<comments>http://userdefinedfunctionsinvba.wordpress.com/2009/10/27/cell-has-data-validation-2/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 11:35:25 +0000</pubDate>
		<dc:creator>userdefinedfunctionsinvba</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[UDFs]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://userdefinedfunctionsinvba.wordpress.com/2009/10/27/cell-has-data-validation-2/</guid>
		<description><![CDATA[Public Function Cell_Has_Data_Validation(RngCell As Range) As StringOn Error GoTo Cell_Has_Data_Validation_ErrorHandler Dim LngCellValidationType As Long&#8216;====================================================================================================&#8216;Iff the cell in question is actually not a cell then return a null string and exit&#8216;====================================================================================================If TypeName(RngCell) &#60;&#62; &#8220;Range&#8221; Then____ Cell_Has_Data_Validation = &#8220;&#8221; ____ Exit FunctionEnd If &#8216;====================================================================================================&#8216;Iff the cell in question is actually NOTHING then return a null string and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=354&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Public Function Cell_Has_Data_Validation(RngCell As Range) As String</strong><br />On Error GoTo Cell_Has_Data_Validation_ErrorHandler</p>
<p>Dim LngCellValidationType As Long<br /><span style="color:#00b050;"><strong>&#8216;====================================================================================================</strong><br /><strong>&#8216;Iff the cell in question is actually not a cell then return a null string and exit<br />&#8216;====================================================================================================</strong></span><br />If TypeName(RngCell) &lt;&gt; &#8220;Range&#8221; Then<br /><span style="color:black;">____</span> Cell_Has_Data_Validation = &#8220;&#8221; <br /><span style="color:black;">____</span> Exit Function<br />End If</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================</strong><br /><strong>&#8216;Iff the cell in question is actually NOTHING then return a null string and exit<br />&#8216;====================================================================================================</strong></span><br />If RngCell Is Nothing Then<br /><span style="color:black;">____</span> Cell_Has_Data_Validation = &#8220;&#8221;<br /><span style="color:black;">____</span> Exit Function End If</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================</strong><br /><strong>&#8216;Iff the cell in question actually consists of &gt;1 AREA then return a null string and exit<br />&#8216;====================================================================================================</strong></span><strong><br /></strong>If RngCell.Areas.Count &lt;&gt; 1 Then<br /><span style="color:black;">____</span> Cell_Has_Data_Validation = &#8220;&#8221;<br /><span style="color:black;">____</span> Exit Function<br />End If</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================</strong><br /><strong>&#8216;Iff the cell in question is actually &gt;1 CELLS then return a null string and exit<br />&#8216;====================================================================================================</strong></span><br />If RngCell.Cells.Count &lt;&gt; 1 Then<br /><span style="color:black;">____</span> Cell_Has_Data_Validation = &#8220;&#8221;<br /><span style="color:black;">____</span> Exit Function<br />End If<br /><strong><br /><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Determine iff the cell in question has validation, if it does then return &#8220;True&#8221; else an error will result and thus return &#8220;False&#8221;<br />&#8216;====================================================================================================</span></strong><br />LngCellValidationType = RngCell.Validation.Type Cell_Has_Data_Validation = &#8220;True&#8221;<br />Exit Function</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================</strong><br /><strong>&#8216;At this juncture an error has occurred and thus return &#8220;False&#8221;<br />&#8216;====================================================================================================</strong></span><strong><br /></strong>Cell_Has_Data_Validation_ErrorHandler:<br /><span style="color:black;">____</span> Cell_Has_Data_Validation = &#8220;False&#8221;<br /><strong>End Function</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/userdefinedfunctionsinvba.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/userdefinedfunctionsinvba.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/userdefinedfunctionsinvba.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/userdefinedfunctionsinvba.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/userdefinedfunctionsinvba.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/userdefinedfunctionsinvba.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/userdefinedfunctionsinvba.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/userdefinedfunctionsinvba.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/userdefinedfunctionsinvba.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/userdefinedfunctionsinvba.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/userdefinedfunctionsinvba.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/userdefinedfunctionsinvba.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/userdefinedfunctionsinvba.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/userdefinedfunctionsinvba.wordpress.com/354/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=354&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://userdefinedfunctionsinvba.wordpress.com/2009/10/27/cell-has-data-validation-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/16f0e1517c0117988db55fcaf634b2e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">userdefinedfunctionsinvba</media:title>
		</media:content>
	</item>
		<item>
		<title>Stringize A Range</title>
		<link>http://userdefinedfunctionsinvba.wordpress.com/2009/10/21/stringize-a-range-2/</link>
		<comments>http://userdefinedfunctionsinvba.wordpress.com/2009/10/21/stringize-a-range-2/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 12:20:25 +0000</pubDate>
		<dc:creator>userdefinedfunctionsinvba</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[UDFs]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://userdefinedfunctionsinvba.wordpress.com/2009/10/21/stringize-a-range-2/</guid>
		<description><![CDATA[Public Function Stringize_A_Range(RngInQuestion As Range, Optional StrDelimiter As Variant, Optional BolPrefixDelimit As Variant, Optional BolPostfixDelimit As Variant) As String On Error GoTo Stringize_A_Range_ErrorHandler Dim RngArea As Range Dim RngCell As Range Dim StrResult As String &#8216;====================================================================================================&#8216;Iff the supplied range is in fact NOTHING then return a NULL STRING and exit&#8216;====================================================================================================If RngInQuestion Is Nothing Then____Stringize_A_Range = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=334&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Public Function Stringize_A_Range(RngInQuestion As Range, Optional StrDelimiter As Variant, Optional BolPrefixDelimit As Variant, Optional BolPostfixDelimit As Variant) As String</strong><br />
		<br />On Error GoTo Stringize_A_Range_ErrorHandler Dim RngArea As Range Dim RngCell As Range Dim StrResult As String</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================</strong><br /><strong>&#8216;Iff the supplied range is in fact NOTHING then return a NULL STRING and exit<br />&#8216;====================================================================================================</strong><br /></span>If RngInQuestion Is Nothing Then<br /><span style="color:black;">____</span>Stringize_A_Range = &#8220;&#8221;<br /><span style="color:black;">____</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Iff no delimiter was supplied then set the default delimiter to a comma<br />&#8216;====================================================================================================</strong><br /></span>If IsMissing(StrDelimiter) Then<br /><span style="color:black;">____</span>StrDelimiter = &#8220;,&#8221;<br />End If</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<strong><br /></strong>&#8216;Iff no PREFIXING delimiter was supplied then set the default to FALSE ie do NOT prefix the result string<br />&#8216;====================================================================================================<strong><br /></strong></span>If IsMissing(BolPrefixDelimit) Then<br /><span style="color:black;">____</span>BolPrefixDelimit = False<br />End If</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================</strong><br /><strong>&#8216;Iff no POSTFIXING delimiter was supplied then set the default to FALSE ie do NOT postfix the result string</strong><br /><strong>&#8216;====================================================================================================</strong><br /></span>If IsMissing(BolPostfixDelimit) Then<br /><span style="color:black;">____</span>BolPostfixDelimit = False<br />End If</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<strong><br /></strong>&#8216;Iff the result string must be prefixed then prefix same<br />&#8216;====================================================================================================<strong><br /></strong></span>If BolPrefixDelimit Then<br /><span style="color:black;">____</span>StrResult = StrDelimiter<br />End If<br /><span style="color:#00b050;"><strong><br />&#8216;====================================================================================================</strong><br /><strong>&#8216;Cycle through each and every CELL in each and every AREA of the supplied range and assemble the result string<br />&#8216;====================================================================================================</strong><br /></span>For Each RngArea In RngInQuestion.Areas<br /><span style="color:black;">____</span>For Each RngCell In RngArea.Cells<br /><span style="color:black;">________</span>StrResult = StrResult &amp; RngCell.Value &amp; StrDelimiter<br /><span style="color:black;">____</span>Next RngCell Next RngArea<br /><strong><br /></strong><span style="color:#00b050;">&#8216;====================================================================================================<strong><br /></strong>&#8216;Iff the result string must be postfixed then postfix same<br />&#8216;====================================================================================================<strong><br /></strong></span>If Not BolPostfixDelimit The<br /><span style="color:black;">____</span>StrResult = Left(StrResult, Len(StrResult) &#8211; Len(StrDelimiter))<br />End If</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================</strong><br /><strong>&#8216;Return the result and exit the function<br />&#8216;====================================================================================================</strong><br /></span>Stringize_A_Range = StrResult<br />Exit Function</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<strong><br /></strong>&#8216;At this juncture the result has NOT been arrived due to an error being raised now return the default error result &amp; exit<br />&#8216;====================================================================================================<strong><br /></strong></span>Stringize_A_Range_ErrorHandler:<br /><span style="color:black;">____</span>Stringize_A_Range = &#8220;&#8221;<br /><strong>End Function </strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/userdefinedfunctionsinvba.wordpress.com/334/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/userdefinedfunctionsinvba.wordpress.com/334/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/userdefinedfunctionsinvba.wordpress.com/334/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/userdefinedfunctionsinvba.wordpress.com/334/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/userdefinedfunctionsinvba.wordpress.com/334/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/userdefinedfunctionsinvba.wordpress.com/334/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/userdefinedfunctionsinvba.wordpress.com/334/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/userdefinedfunctionsinvba.wordpress.com/334/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/userdefinedfunctionsinvba.wordpress.com/334/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/userdefinedfunctionsinvba.wordpress.com/334/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/userdefinedfunctionsinvba.wordpress.com/334/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/userdefinedfunctionsinvba.wordpress.com/334/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/userdefinedfunctionsinvba.wordpress.com/334/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/userdefinedfunctionsinvba.wordpress.com/334/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=334&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://userdefinedfunctionsinvba.wordpress.com/2009/10/21/stringize-a-range-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/16f0e1517c0117988db55fcaf634b2e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">userdefinedfunctionsinvba</media:title>
		</media:content>
	</item>
		<item>
		<title>Evaluate Polynomial</title>
		<link>http://userdefinedfunctionsinvba.wordpress.com/2009/10/12/evaluate-polynomial/</link>
		<comments>http://userdefinedfunctionsinvba.wordpress.com/2009/10/12/evaluate-polynomial/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 21:37:28 +0000</pubDate>
		<dc:creator>userdefinedfunctionsinvba</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[UDFs]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[UDF]]></category>

		<guid isPermaLink="false">http://userdefinedfunctionsinvba.wordpress.com/2009/10/12/evaluate-polynomial/</guid>
		<description><![CDATA[Public Function Evaluate_Polynomial(RngExponents As Range, RngCoefficients As Range, RngX As Range) As VariantDim LngLoopCells As LongDim LngCountCells As LongDim DblSum As Double &#8216;====================================================================================================&#8216;Perform the necessary checks on the cells that contain the EXPONENTS&#8216;====================================================================================================If TypeName(RngExponents) &#60;&#62; &#8220;Range&#8221; Then&#8212;&#8212;&#8211;Polynomial = &#8220;UNDEFINED&#8221;&#8212;&#8212;&#8211;Exit FunctionEnd If If RngExponents Is Nothing Then&#8212;&#8212;&#8211;Polynomial = &#8220;UNDEFINED&#8221;&#8212;&#8212;&#8211;Exit FunctionEnd If If RngExponents.Areas.Count &#60;&#62; 1 Then&#8212;&#8212;&#8211;Polynomial [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=208&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Public Function Evaluate_Polynomial(RngExponents As Range, RngCoefficients As Range, RngX As Range) As Variant</strong><br />Dim LngLoopCells As Long<br />Dim LngCountCells As Long<br />Dim DblSum As Double</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Perform the necessary checks on the cells that contain the EXPONENTS<br />&#8216;====================================================================================================<br /></strong></span>If TypeName(RngExponents) &lt;&gt; &#8220;Range&#8221; Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p>If RngExponents Is Nothing Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p>If RngExponents.Areas.Count &lt;&gt; 1 Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Perform the necessary checks on the cells that contain the COEFFICIENTS<br />&#8216;====================================================================================================<br /></strong></span>If TypeName(RngCoefficients) &lt;&gt; &#8220;Range&#8221; Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p>If RngCoefficients Is Nothing Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p>If RngCoefficients.Areas.Count &lt;&gt; 1 Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Make sure that the number of COEFFICIENTS matches the number of EXPONENTS<br />&#8216;====================================================================================================<br /></strong></span>If RngExponents.Cells.Count &lt;&gt; RngCoefficients.Cells.Count Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p>If TypeName(RngX) &lt;&gt; &#8220;Range&#8221; Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p>If RngX Is Nothing Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Perform the necessary checks on the X-value<br />&#8216;====================================================================================================<br /></strong></span>If RngX.Areas.Count &lt;&gt; 1 Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p>If RngX.Cells.Count &lt;&gt; 1 Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p>If Not IsNumeric(RngX) Then<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Polynomial = &#8220;UNDEFINED&#8221;<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Determine the number of terms in the polynomial<br />&#8216;====================================================================================================<br /></strong></span>LngCountCells = RngExponents.Cells.Count</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Loop through the coefficient and exponent pairs and multiply accordingly summing up on each iteration<br />&#8216;====================================================================================================<br /></strong></span>For LngLoopCells = 1 To LngCountCells<br /><span style="color:black;">&#8212;&#8212;&#8211;</span>DblSum = DblSum + RngCoefficients.Cells(LngLoopCells).Value * (RngX.Value ^ RngExponents.Cells(LngLoopCells).Value)<br />Next LngLoopCells</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Return the result<br />&#8216;====================================================================================================<br /></strong></span>Evaluate_Polynomial = DblSum<strong></p>
<p>End Function</strong>
	</p>
<p>  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/userdefinedfunctionsinvba.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/userdefinedfunctionsinvba.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/userdefinedfunctionsinvba.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/userdefinedfunctionsinvba.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/userdefinedfunctionsinvba.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/userdefinedfunctionsinvba.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/userdefinedfunctionsinvba.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/userdefinedfunctionsinvba.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/userdefinedfunctionsinvba.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/userdefinedfunctionsinvba.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/userdefinedfunctionsinvba.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/userdefinedfunctionsinvba.wordpress.com/208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/userdefinedfunctionsinvba.wordpress.com/208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/userdefinedfunctionsinvba.wordpress.com/208/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=208&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://userdefinedfunctionsinvba.wordpress.com/2009/10/12/evaluate-polynomial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/16f0e1517c0117988db55fcaf634b2e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">userdefinedfunctionsinvba</media:title>
		</media:content>
	</item>
		<item>
		<title>Match UDF</title>
		<link>http://userdefinedfunctionsinvba.wordpress.com/2009/10/03/match-udf/</link>
		<comments>http://userdefinedfunctionsinvba.wordpress.com/2009/10/03/match-udf/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 13:03:32 +0000</pubDate>
		<dc:creator>userdefinedfunctionsinvba</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[UDFs]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[UDF]]></category>

		<guid isPermaLink="false">http://userdefinedfunctionsinvba.wordpress.com/2009/10/03/match-udf-3/</guid>
		<description><![CDATA[Public Function Match_UDF(RngValue2Find As Range, Rng2Search As Range, Optional BolCaseSensitive As Variant) As RangeOn Error GoTo Match_UDF_ErrorHandlerDim RngArea As RangeDim RngCell As RangeDim VarValue2Find As Variant &#8216;====================================================================================================&#8216;Return NOTHING iff the RngValue2Find is itself NOTHING and EXIT&#8216;====================================================================================================If RngValue2Find Is Nothing Then        Set Match_UDF = Nothing        Exit FunctionEnd If &#8216;====================================================================================================&#8216;Return NOTHING iff the RngValue2Find has more than [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=184&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;"><strong>Public Function Match_UDF(RngValue2Find As Range, Rng2Search As Range, Optional BolCaseSensitive As Variant) As Range<br /></strong>On Error GoTo Match_UDF_ErrorHandler<br />Dim RngArea As Range<br />Dim RngCell As Range<br />Dim VarValue2Find As Variant</span>
	</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Return NOTHING iff the RngValue2Find is itself NOTHING and EXIT<br />&#8216;====================================================================================================<br /></strong></span><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">If RngValue2Find Is Nothing Then<br />        Set Match_UDF = Nothing<br />        Exit Function<br />End If</span>
	</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Return NOTHING iff the RngValue2Find has more than 1 AREA and EXIT<br />&#8216;====================================================================================================<span style="font-family:Arial Narrow;font-size:8pt;"><br /></span></strong></span><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">If RngValue2Find.Areas.Count &lt;&gt; 1 Then<br />        Set Match_UDF = Nothing<br />        Exit Function<br />End If</span>
	</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Return NOTHING iff the RngValue2Find has more than 1 CELL and EXIT<br />&#8216;====================================================================================================<span style="font-family:Arial Narrow;font-size:8pt;"><br /></span></strong></span><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">If RngValue2Find.Cells.Count &lt;&gt; 1 Then<br />        Set Match_UDF = Nothing<br />        Exit Function<br />End If</span>
	</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Return NOTHING iff the Rng2Search is itself NOTHING and EXIT<br />&#8216;====================================================================================================<span style="font-family:Arial Narrow;font-size:8pt;"><br /></span></strong></span><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">If Rng2Search Is Nothing Then<br />        Set Match_UDF = Nothing<br />        Exit Function<br />End If</span>
	</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Set the default to CASE INSENSITIVE iff needs be<br />&#8216;====================================================================================================<span style="font-family:Arial Narrow;font-size:8pt;"><br /></span></strong></span><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">If IsMissing(BolCaseSensitive) Then<br />        BolCaseSensitive = False<br />End If</span>
	</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Make a note of the value to be found<br />&#8216;====================================================================================================<span style="font-family:Arial Narrow;font-size:8pt;"><br /></span></strong></span><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">VarValue2Find = RngValue2Find.Value</span>
	</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;If CASE INSENSITIVITY is the setting then uppercase the value to find<br />&#8216;====================================================================================================<span style="font-family:Arial Narrow;font-size:8pt;"><br /></span></strong></span><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">If Not BolCaseSensitive Then<br />        RngValue2Find = UCase(RngValue2Find)<br />End If</span>
	</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;Cycle through each of the AREAS in the range to seach and ALL of the cells therein<br />&#8216;====================================================================================================<span style="font-family:Arial Narrow;font-size:8pt;"><br /></span></strong></span><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">For Each RngArea In Rng2Search.Areas<br />        For Each RngCell In RngArea.Cells<br /></span><span style="color:#00b050;"><strong>                &#8216;====================================================================================================<br />                &#8216;iff the cell to be found is actually found then return it&#8217;s single cell range location and exit<br />                &#8216;====================================================================================================<span style="font-family:Arial Narrow;font-size:8pt;"><br /></span></strong></span><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">                If BolCaseSensitive Then</span>
	</p>
<p><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">                        If RngCell.Value = RngValue2Find Then<br />                                Set Match_UDF = RngCell<br />                                Exit Function<br />                       End If<br /></span><span style="color:#00b050;"><strong>                &#8216;====================================================================================================<br />                &#8217;iff the [UCASE] cell to be found is actually found [case insensitive match] return it&#8217;s single cell range location &amp; exit<br />                &#8216;====================================================================================================<span style="font-family:Arial Narrow;font-size:8pt;"><br /></span></strong></span><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">                Else<br />                        If UCase(RngCell.Value) = RngValue2Find Then<br />                                Set Match_UDF = RngCell<br />                                Exit Function<br />                        End If<br />               End If<br />       Next RngCell<br />Next RngArea</span><br />
		<span style="color:#999999;font-family:Arial Narrow;font-size:8pt;"><br />Exit Function</span>
	</p>
<p><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;At this point an error of some sort has occurred and thus return NOTHING<br />&#8216;====================================================================================================<span style="font-family:Arial Narrow;font-size:8pt;"><br /></span></strong></span><span style="color:#999999;font-family:Arial Narrow;font-size:8pt;">Match_UDF_ErrorHandler:<br />        Set Match_UDF = Nothing<br /><strong>End Function</strong></span>
	</p>
<p><span style="font-family:Arial Narrow;font-size:8pt;"> </span>   </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/userdefinedfunctionsinvba.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/userdefinedfunctionsinvba.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/userdefinedfunctionsinvba.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/userdefinedfunctionsinvba.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/userdefinedfunctionsinvba.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/userdefinedfunctionsinvba.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/userdefinedfunctionsinvba.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/userdefinedfunctionsinvba.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/userdefinedfunctionsinvba.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/userdefinedfunctionsinvba.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/userdefinedfunctionsinvba.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/userdefinedfunctionsinvba.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/userdefinedfunctionsinvba.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/userdefinedfunctionsinvba.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=184&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://userdefinedfunctionsinvba.wordpress.com/2009/10/03/match-udf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/16f0e1517c0117988db55fcaf634b2e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">userdefinedfunctionsinvba</media:title>
		</media:content>
	</item>
		<item>
		<title>File Date And Time</title>
		<link>http://userdefinedfunctionsinvba.wordpress.com/2009/09/11/file-date-and-time/</link>
		<comments>http://userdefinedfunctionsinvba.wordpress.com/2009/09/11/file-date-and-time/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 09:58:18 +0000</pubDate>
		<dc:creator>userdefinedfunctionsinvba</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[UDFs]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[UDF]]></category>

		<guid isPermaLink="false">http://userdefinedfunctionsinvba.wordpress.com/2009/09/11/file-date-and-time/</guid>
		<description><![CDATA[Public Function File_Date_And_Time(StrFileSpec As String) As String On Error GoTo File_Date_And_Time _ErrorHandler &#8216;====================================================================================================&#8216;This function returns the DATE and TIME (of CREATION) of the supplied filename&#8216;==================================================================================================== ________File_Date_And_Time = CStr(FileDateTime(StrFileSpec)) Exit Function &#8216;====================================================================================================&#8216;At this juncture an error has returned therefore return a NULL string&#8216;==================================================================================================== File_Date_And_Time _ErrorHandler: ________File_Date_And_Time = &#8220;&#8221; End Function<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=177&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Public Function File_Date_And_Time(StrFileSpec As String) As String </strong>
	</p>
<p>On Error GoTo File_Date_And_Time _ErrorHandler <br /><span style="color:#00b050;"><strong>&#8216;====================================================================================================<br />&#8216;This function returns the DATE and TIME (of CREATION) of the supplied filename<br />&#8216;==================================================================================================== </strong></span><br /><span style="color:black;">________</span>File_Date_And_Time = CStr(FileDateTime(StrFileSpec)) <br />Exit Function <br /><span style="color:#00b050;"><strong><br />&#8216;====================================================================================================<br />&#8216;At this juncture an error has returned therefore return a NULL string<br />&#8216;==================================================================================================== </strong></span><br />File_Date_And_Time _ErrorHandler: <br /><span style="color:black;">________</span>File_Date_And_Time = &#8220;&#8221; <br /><strong>End Function</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/userdefinedfunctionsinvba.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/userdefinedfunctionsinvba.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/userdefinedfunctionsinvba.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/userdefinedfunctionsinvba.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/userdefinedfunctionsinvba.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/userdefinedfunctionsinvba.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/userdefinedfunctionsinvba.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/userdefinedfunctionsinvba.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/userdefinedfunctionsinvba.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/userdefinedfunctionsinvba.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/userdefinedfunctionsinvba.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/userdefinedfunctionsinvba.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/userdefinedfunctionsinvba.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/userdefinedfunctionsinvba.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=177&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://userdefinedfunctionsinvba.wordpress.com/2009/09/11/file-date-and-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/16f0e1517c0117988db55fcaf634b2e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">userdefinedfunctionsinvba</media:title>
		</media:content>
	</item>
		<item>
		<title>Count Shapes In ActiveWorksheet</title>
		<link>http://userdefinedfunctionsinvba.wordpress.com/2009/09/09/count-shapes-in-activeworksheet/</link>
		<comments>http://userdefinedfunctionsinvba.wordpress.com/2009/09/09/count-shapes-in-activeworksheet/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 10:12:10 +0000</pubDate>
		<dc:creator>userdefinedfunctionsinvba</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[UDFs]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[UDF]]></category>

		<guid isPermaLink="false">http://userdefinedfunctionsinvba.wordpress.com/2009/09/09/count-shapes-in-activeworksheet/</guid>
		<description><![CDATA[&#8216;==================================================================================================== &#8216;This function returns the number of SHAPES in the ActiveSheet &#8216;====================================================================================================Public Function Count_Shapes_In_ActiveWorksheet() As Long Dim SHP As Shape For Each SHP In ActiveSheet.Shapes ________Count_Shapes_In_ActiveWorksheet = Count_Shapes_In_ActiveWorksheet + 1 Next SHP End Function<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=176&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#00b050;">&#8216;==================================================================================================== <br />&#8216;This function returns the number of SHAPES in the ActiveSheet &#8216;====================================================================================================<strong><br /></strong></span><strong>Public Function Count_Shapes_In_ActiveWorksheet() As Long <br /></strong>Dim SHP As Shape </p>
<p>For Each SHP In ActiveSheet.Shapes <br /><span style="color:black;">________</span>Count_Shapes_In_ActiveWorksheet = Count_Shapes_In_ActiveWorksheet + 1 <br />Next SHP </p>
<p><strong>End Function</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/userdefinedfunctionsinvba.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/userdefinedfunctionsinvba.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/userdefinedfunctionsinvba.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/userdefinedfunctionsinvba.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/userdefinedfunctionsinvba.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/userdefinedfunctionsinvba.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/userdefinedfunctionsinvba.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/userdefinedfunctionsinvba.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/userdefinedfunctionsinvba.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/userdefinedfunctionsinvba.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/userdefinedfunctionsinvba.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/userdefinedfunctionsinvba.wordpress.com/176/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/userdefinedfunctionsinvba.wordpress.com/176/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/userdefinedfunctionsinvba.wordpress.com/176/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=176&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://userdefinedfunctionsinvba.wordpress.com/2009/09/09/count-shapes-in-activeworksheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/16f0e1517c0117988db55fcaf634b2e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">userdefinedfunctionsinvba</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove Bottom Row From Supplied Range</title>
		<link>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-bottom-row-from-supplied-range/</link>
		<comments>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-bottom-row-from-supplied-range/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 14:04:23 +0000</pubDate>
		<dc:creator>userdefinedfunctionsinvba</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[UDFs]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[UDF]]></category>

		<guid isPermaLink="false">http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-bottom-row-from-supplied-range/</guid>
		<description><![CDATA[&#8216;==================================================================================================== &#8216;This function range removes the BOTTOM-most row from said range and returns same as the result&#8216;==================================================================================================== Public Function Remove_Bottom_Row_From_Supplied_Range(RngInQuestion As Range) As Range On Error GoTo Remove_Bottom_Row_From_Supplied_Range_ErrorHandler &#8216;==================================================================================================== &#8216;Iff the supplied range is NOTHING then return NOTHING and EXIT&#8216;==================================================================================================== If RngInQuestion Is Nothing Then ________Set Remove_Bottom_Row_From_Supplied_Range = Nothing ________Exit Function End If &#8216;==================================================================================================== &#8216;Iff [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=175&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#00b050;"><strong>&#8216;==================================================================================================== <br />&#8216;This function range removes the BOTTOM-most row from said range and returns same as the result</strong></span><br /><span style="color:#00b050;"><strong>&#8216;==================================================================================================== </strong></span><br /><strong>Public Function Remove_Bottom_Row_From_Supplied_Range(RngInQuestion As Range) As Range <br /></strong>On Error GoTo Remove_Bottom_Row_From_Supplied_Range_ErrorHandler</p>
<p><span style="color:#00b050;"><strong>&#8216;==================================================================================================== </strong></span><br /><span style="color:#00b050;"><strong>&#8216;Iff the supplied range is NOTHING then return NOTHING and EXIT</strong></span><br /><span style="color:#00b050;"><strong>&#8216;==================================================================================================== </strong></span><br />If RngInQuestion Is Nothing Then <br /><span style="color:black;">________</span>Set Remove_Bottom_Row_From_Supplied_Range = Nothing <br /><span style="color:black;">________</span>Exit Function <br />End If </p>
<p><span style="color:#00b050;"><strong>&#8216;==================================================================================================== </strong></span><br /><span style="color:#00b050;"><strong>&#8216;Iff the supplied range has more than 1 AREA then return NOTHING and EXIT</strong></span><br /><span style="color:#00b050;"><strong>&#8216;==================================================================================================== </strong></span><br />If RngInQuestion.Areas.Count &lt;&gt; 1 Then <br /><span style="color:black;">________</span>Set Remove_Bottom_Row_From_Supplied_Range = Nothing <br /><span style="color:black;">________</span>Exit Function <br />End If </p>
<p><span style="color:#00b050;"><strong>&#8216;==================================================================================================== </strong></span><br /><span style="color:#00b050;"><strong>&#8216;Iff the supplied range has 1 ROW then return NOTHING and EXIT </strong></span><br /><span style="color:#00b050;"><strong>&#8216;==================================================================================================== </strong></span><br />If RngInQuestion.Rows.Count &lt;= 1 Then <br /><span style="color:black;">________</span>Set Remove_Bottom_Row_From_Supplied_Range = Nothing <br /><span style="color:black;">________</span>Exit Function <br />End If </p>
<p><span style="color:#00b050;"><strong>&#8216;==================================================================================================== </strong></span><br /><span style="color:#00b050;"><strong>&#8216;Reduce the size of the supplied range (ignore the BOTTOMmost column) return the result and EXIT</strong></span><br /><span style="color:#00b050;"><strong>&#8216;==================================================================================================== </strong></span><br />Set Remove_Bottom_Row_From_Supplied_Range = RngInQuestion.Resize(RngInQuestion.Rows.Count &#8211; 1, <br />RngInQuestion.Columns.Count) <br />Exit Function </p>
<p><span style="color:#00b050;"><strong>&#8216;==================================================================================================== </strong></span><br /><span style="color:#00b050;"><strong>&#8216;At this juncture an error of some sort has been arrived at therefore return NOTHING on EXITING</strong></span><br /><span style="color:#00b050;"><strong>&#8216;====================================================================================================</strong></span><br />Remove_Bottom_Row_From_Supplied_Range_ErrorHandler: <br /><span style="color:black;">________</span>Set Remove_Bottom_Row_From_Supplied_Range = Nothing <br /><strong>End Function</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/userdefinedfunctionsinvba.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/userdefinedfunctionsinvba.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/userdefinedfunctionsinvba.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/userdefinedfunctionsinvba.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/userdefinedfunctionsinvba.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/userdefinedfunctionsinvba.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/userdefinedfunctionsinvba.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/userdefinedfunctionsinvba.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/userdefinedfunctionsinvba.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/userdefinedfunctionsinvba.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/userdefinedfunctionsinvba.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/userdefinedfunctionsinvba.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/userdefinedfunctionsinvba.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/userdefinedfunctionsinvba.wordpress.com/175/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=175&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-bottom-row-from-supplied-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/16f0e1517c0117988db55fcaf634b2e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">userdefinedfunctionsinvba</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove Top Row From Supplied Range</title>
		<link>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-top-row-from-supplied-range/</link>
		<comments>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-top-row-from-supplied-range/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 14:01:24 +0000</pubDate>
		<dc:creator>userdefinedfunctionsinvba</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[UDFs]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[UDF]]></category>

		<guid isPermaLink="false">http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-top-row-from-supplied-range/</guid>
		<description><![CDATA[&#8216;==================================================================================================== &#8216;This function when supplied with a range removes the TOPmost row from said range and returns same as the result&#8216;====================================================================================================Public Function Remove_Top_Row_From_Supplied_Range(RngInQuestion As Range) As RangeOn Error GoTo Remove_Top_Row_From_Supplied_Range_ErrorHandler &#8216;====================================================================================================&#8216;Iff the supplied range is NOTHING then return NOTHING and EXIT&#8216;====================================================================================================If RngInQuestion Is Nothing Then ________Set Remove_Top_Row_From_Supplied_Range = Nothing________Exit FunctionEnd If &#8216;==================================================================================================== &#8216;Iff the supplied [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=174&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#00b050;">&#8216;==================================================================================================== <br />&#8216;This function when supplied with a range removes the TOPmost row from said range and returns same as the result<br />&#8216;====================================================================================================</span><br /><strong>Public Function Remove_Top_Row_From_Supplied_Range(RngInQuestion As Range) As Range<br /></strong>On Error GoTo Remove_Top_Row_From_Supplied_Range_ErrorHandler</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Iff the supplied range is NOTHING then return NOTHING and EXIT<br />&#8216;====================================================================================================</span><br />If RngInQuestion Is Nothing Then <br /><span style="color:black;">________</span>Set Remove_Top_Row_From_Supplied_Range = Nothing<br /><span style="color:black;">________</span>Exit Function<br />End If </p>
<p><span style="color:#00b050;">&#8216;==================================================================================================== <br />&#8216;Iff the supplied range has more than 1 AREA then return NOTHING and EXIT<br />&#8216;====================================================================================================<br /></span><span style="color:black;">If </span>RngInQuestion.Areas.Count &lt;&gt; 1 Then<br /><span style="color:black;">________</span>Set Remove_Top_Row_From_Supplied_Range = Nothing <br /><span style="color:black;">________</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Iff the supplied range has 1 ROW then return NOTHING and EXIT<br />&#8216;====================================================================================================</span><br />If RngInQuestion.Rows.Count &lt;= 1 Then<br /><span style="color:black;">________</span>Set Remove_Top_Row_From_Supplied_Range = Nothing<br /><span style="color:black;">________</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Reduce the size of the supplied range (ignore the TOPMOST column) return the result and EXIT<br />&#8216;====================================================================================================</span><br />Set Remove_Top_Row_From_Supplied_Range = RngInQuestion.Resize(RngInQuestion.Rows.Count &#8211; 1, RngInQuestion.Columns.Count).Offset(1, 0)<br />Exit Function</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;At this juncture an error of some sort has been arrived at therefore return NOTHING on EXITING<br />&#8216;====================================================================================================<br /></span>Remove_Top_Row_From_Supplied_Range_ErrorHandler:<br /><span style="color:black;">________</span>Set Remove_Top_Row_From_Supplied_Range = Nothing<br /><strong>End Function</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/userdefinedfunctionsinvba.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/userdefinedfunctionsinvba.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/userdefinedfunctionsinvba.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/userdefinedfunctionsinvba.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/userdefinedfunctionsinvba.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/userdefinedfunctionsinvba.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/userdefinedfunctionsinvba.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/userdefinedfunctionsinvba.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/userdefinedfunctionsinvba.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/userdefinedfunctionsinvba.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/userdefinedfunctionsinvba.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/userdefinedfunctionsinvba.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/userdefinedfunctionsinvba.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/userdefinedfunctionsinvba.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=174&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-top-row-from-supplied-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/16f0e1517c0117988db55fcaf634b2e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">userdefinedfunctionsinvba</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove Left Column From Supplied Range</title>
		<link>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-left-column-from-supplied-range/</link>
		<comments>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-left-column-from-supplied-range/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 13:59:16 +0000</pubDate>
		<dc:creator>userdefinedfunctionsinvba</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[UDFs]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[UDF]]></category>

		<guid isPermaLink="false">http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-left-column-from-supplied-range/</guid>
		<description><![CDATA[&#8216;==================================================================================================== &#8216;This function when supplied with a range removes the LEFTmost column from said range and returns same as the result&#8216;====================================================================================================Public Function Remove_Left_Column_From_Supplied_Range(RngInQuestion As Range) As RangeOn Error GoTo Remove_Left_Column_From_Supplied_Range_ErrorHandler&#8216;====================================================================================================&#8216;Iff the supplied range is NOTHING then return NOTHING and EXIT&#8216;==================================================================================================== If RngInQuestion Is Nothing Then________Set Remove_Left_Column_From_Supplied_Range = Nothing________Exit FunctionEnd If &#8216;====================================================================================================&#8216;Iff the supplied range has [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=173&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#00b050;">&#8216;==================================================================================================== <br />&#8216;This function when supplied with a range removes the LEFTmost column from said range and returns same as the result<br />&#8216;====================================================================================================</span><span style="color:#92d050;"><br /></span><strong>Public Function Remove_Left_Column_From_Supplied_Range(RngInQuestion As Range) As Range</strong><br />On Error GoTo Remove_Left_Column_From_Supplied_Range_ErrorHandler<br /><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Iff the supplied range is NOTHING then return NOTHING and EXIT<br />&#8216;====================================================================================================</span></p>
<p>If RngInQuestion Is Nothing Then<br /><span style="color:black;">________</span>Set Remove_Left_Column_From_Supplied_Range = Nothing<br /><span style="color:black;">________</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Iff the supplied range has more than 1 AREA then return NOTHING and EXIT<br />&#8216;====================================================================================================<br /></span>If RngInQuestion.Areas.Count &lt;&gt; 1 Then<br /><span style="color:black;">________</span>Set Remove_Left_Column_From_Supplied_Range = Nothing<br /><span style="color:black;">________</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Iff the supplied range has 1 COLUMN then return NOTHING and EXIT<br />&#8216;====================================================================================================</span><br />If RngInQuestion.Columns.Count &lt;= 1 Then<br /><span style="color:black;">________</span>Set Remove_Left_Column_From_Supplied_Range = Nothing<br /><span style="color:black;">________</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Reduce the size of the supplied range (ignore the LEFTMOST column) return the result and EXIT<br />&#8216;====================================================================================================</span><br />Set Remove_Left_Column_From_Supplied_Range = RngInQuestion.Resize(RngInQuestion.Rows.Count, RngInQuestion.Columns.Count &#8211; 1).Offset(0, 1)<br />Exit Function</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;At this juncture an error of some sort has been arrived at therefore return NOTHING on EXITING<br />&#8216;====================================================================================================</span><br />Remove_Left_Column_From_Supplied_Range_ErrorHandler:<br /><span style="color:black;">________</span>Set Remove_Left_Column_From_Supplied_Range = Nothing<br /><strong>End Function</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/userdefinedfunctionsinvba.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/userdefinedfunctionsinvba.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/userdefinedfunctionsinvba.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/userdefinedfunctionsinvba.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/userdefinedfunctionsinvba.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/userdefinedfunctionsinvba.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/userdefinedfunctionsinvba.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/userdefinedfunctionsinvba.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/userdefinedfunctionsinvba.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/userdefinedfunctionsinvba.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/userdefinedfunctionsinvba.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/userdefinedfunctionsinvba.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/userdefinedfunctionsinvba.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/userdefinedfunctionsinvba.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=173&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-left-column-from-supplied-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/16f0e1517c0117988db55fcaf634b2e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">userdefinedfunctionsinvba</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove Right Column From Supplied Range</title>
		<link>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-right-column-from-supplied-range/</link>
		<comments>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-right-column-from-supplied-range/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 13:58:43 +0000</pubDate>
		<dc:creator>userdefinedfunctionsinvba</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[UDFs]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[UDF]]></category>

		<guid isPermaLink="false">http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-right-column-from-supplied-range/</guid>
		<description><![CDATA[&#8216;====================================================================================================&#8216;This function when supplied with a range removes the RIGHTmost column from said range and returns same as the result&#8216;====================================================================================================Public Function Remove_Right_Column_From_Supplied_Range(RngInQuestion As Range) As RangeOn Error GoTo Remove_Right_Column_From_Supplied_Range_ErrorHandler &#8216;====================================================================================================&#8216;Iff the supplied range is NOTHING then return NOTHING and EXIT&#8216;====================================================================================================If RngInQuestion Is Nothing Then________Set Remove_Right_Column_From_Supplied_Range = Nothing________Exit FunctionEnd If &#8216;====================================================================================================&#8216;Iff the supplied range has more [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=172&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;This function when supplied with a range removes the RIGHTmost column from said range and returns same as the result<br />&#8216;====================================================================================================</span><br /><strong>Public Function Remove_Right_Column_From_Supplied_Range(RngInQuestion As Range) As Range</strong><br />On Error GoTo Remove_Right_Column_From_Supplied_Range_ErrorHandler </p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Iff the supplied range is NOTHING then return NOTHING and EXIT<br />&#8216;====================================================================================================</span><br />If RngInQuestion Is Nothing Then<br /><span style="color:black;">________</span>Set Remove_Right_Column_From_Supplied_Range = Nothing<br /><span style="color:black;">________</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Iff the supplied range has more than 1 AREA then return NOTHING and EXIT<br />&#8216;====================================================================================================</span><br />If RngInQuestion.Areas.Count &lt;&gt; 1 Then<br /><span style="color:black;">________</span>Set Remove_Right_Column_From_Supplied_Range = Nothing<br /><span style="color:black;">________</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Iff the supplied range has 1 COLUMN then return NOTHING and EXIT<br />&#8216;====================================================================================================</span><br />If RngInQuestion.Columns.Count &lt;= 1 Then<br /><span style="color:black;">________</span>Set Remove_Right_Column_From_Supplied_Range = Nothing<br /><span style="color:black;">________</span>Exit Function<br />End If</p>
<p><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;Reduce the size of the supplied range (ignore the RIGHTMOST column), return the result and EXIT<br />&#8216;====================================================================================================</span><br />Set Remove_Right_Column_From_Supplied_Range = RngInQuestion.Resize(RngInQuestion.Rows.Count, RngInQuestion.Columns.Count &#8211; 1)</p>
<p>Exit Function<br /><span style="color:#00b050;">&#8216;====================================================================================================<br />&#8216;At this juncture an error of some sort has been arrived at therefore return NOTHING on EXITING<br />&#8216;====================================================================================================</span><br />Remove_Right_Column_From_Supplied_Range_ErrorHandler:<br /><span style="color:black;">________</span>Set Remove_Right_Column_From_Supplied_Range = Nothing<br /><strong>End Function</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/userdefinedfunctionsinvba.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/userdefinedfunctionsinvba.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/userdefinedfunctionsinvba.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/userdefinedfunctionsinvba.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/userdefinedfunctionsinvba.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/userdefinedfunctionsinvba.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/userdefinedfunctionsinvba.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/userdefinedfunctionsinvba.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/userdefinedfunctionsinvba.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/userdefinedfunctionsinvba.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/userdefinedfunctionsinvba.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/userdefinedfunctionsinvba.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/userdefinedfunctionsinvba.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/userdefinedfunctionsinvba.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=userdefinedfunctionsinvba.wordpress.com&amp;blog=8772692&amp;post=172&amp;subd=userdefinedfunctionsinvba&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://userdefinedfunctionsinvba.wordpress.com/2009/09/08/remove-right-column-from-supplied-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/16f0e1517c0117988db55fcaf634b2e5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">userdefinedfunctionsinvba</media:title>
		</media:content>
	</item>
	</channel>
</rss>
