<?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: Change Named Constants in VBA</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/11/09/change-named-constants-in-vba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/11/09/change-named-constants-in-vba/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Kirk</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/09/change-named-constants-in-vba/#comment-17478</link>
		<dc:creator>Kirk</dc:creator>
		<pubDate>Sat, 12 Nov 2005 17:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1282#comment-17478</guid>
		<description>&lt;p&gt;Dick,&lt;/p&gt;
&lt;p&gt;You may need to set up a &quot;finalize&quot; or &quot;close out&quot; procedure to activate after the invoice has been completed.  I assume the invoices are saved as  separate files.  If so, a procedure that converts the formulas to hard numbers would prevent you unwanted updating problem.  Be sure to include a safe stop that prevents the original master file from being &quot;finalized.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick,</p>
<p>You may need to set up a &#8220;finalize&#8221; or &#8220;close out&#8221; procedure to activate after the invoice has been completed.  I assume the invoices are saved as  separate files.  If so, a procedure that converts the formulas to hard numbers would prevent you unwanted updating problem.  Be sure to include a safe stop that prevents the original master file from being &#8220;finalized.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/09/change-named-constants-in-vba/#comment-17472</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Sat, 12 Nov 2005 03:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1282#comment-17472</guid>
		<description>&lt;p&gt;On second thought, I guess the second one won&#039;t work with what you describe, because of the issue of regenerating the invoice at a later date, after a possible rate change.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>On second thought, I guess the second one won&#8217;t work with what you describe, because of the issue of regenerating the invoice at a later date, after a possible rate change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/09/change-named-constants-in-vba/#comment-17470</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Sat, 12 Nov 2005 01:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1282#comment-17470</guid>
		<description>&lt;p&gt;Dick,&lt;/p&gt;
&lt;p&gt;It sounds like you only use each constant once in a sheet.  If that&#039;s true, I think it would be more direct to just put the values from your external file into named ranges in the sheet like&lt;br&gt;
Me.Range(&quot;StateTaxRate&quot;).Value = udtTxGrp.dStateRate/100*StateFactor(sTaxIdFromJob, udtTxGrp)  &lt;/p&gt;
&lt;p&gt;Or you could do a lookup and then hard-code the cell value like&lt;br&gt;
Me.Range(&quot;StateTaxRate&quot;).Value = Me.Range(&quot;StateTaxRate&quot;).Value&lt;/p&gt;
&lt;p&gt;Is that any better?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick,</p>
<p>It sounds like you only use each constant once in a sheet.  If that&#8217;s true, I think it would be more direct to just put the values from your external file into named ranges in the sheet like<br />
Me.Range(&#8220;StateTaxRate&#8221;).Value = udtTxGrp.dStateRate/100*StateFactor(sTaxIdFromJob, udtTxGrp)  </p>
<p>Or you could do a lookup and then hard-code the cell value like<br />
Me.Range(&#8220;StateTaxRate&#8221;).Value = Me.Range(&#8220;StateTaxRate&#8221;).Value</p>
<p>Is that any better?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/09/change-named-constants-in-vba/#comment-17463</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Fri, 11 Nov 2005 14:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1282#comment-17463</guid>
		<description>&lt;p&gt;Are you guys saying that I should manually key in the tax rates in a separate table?  I already have the tax rates in an external table (accounting system).  If I have them separately in Excel, then I&#039;ll have to change them in two places, and that ain&#039;t happening.&lt;br&gt;
I could create external data tables (2) on other sheets and use lookups, but I don&#039;t know if that&#039;s better than what I have.  When do I refresh the external data tables? On Open?  If I open an invoice from a year ago, and the rates have changed, then the invoice won&#039;t be right.  Now, the rate will only change if I change the job id.  How many jobs should I include in the external data table?  All of them?  Even the ones that have been closed for five years?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Are you guys saying that I should manually key in the tax rates in a separate table?  I already have the tax rates in an external table (accounting system).  If I have them separately in Excel, then I&#8217;ll have to change them in two places, and that ain&#8217;t happening.<br />
I could create external data tables (2) on other sheets and use lookups, but I don&#8217;t know if that&#8217;s better than what I have.  When do I refresh the external data tables? On Open?  If I open an invoice from a year ago, and the rates have changed, then the invoice won&#8217;t be right.  Now, the rate will only change if I change the job id.  How many jobs should I include in the external data table?  All of them?  Even the ones that have been closed for five years?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toad</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/09/change-named-constants-in-vba/#comment-17461</link>
		<dc:creator>Toad</dc:creator>
		<pubDate>Fri, 11 Nov 2005 04:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1282#comment-17461</guid>
		<description>&lt;p&gt;I&#039;m no Excel guru.  I&#039;m just a tax lawyer.  I always put my tax rates in lookup tables because the rates change all the time.  (I was going to say that the rates change &quot;constantly&quot;, but that seemed oxymoronic.  Or something.)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m no Excel guru.  I&#8217;m just a tax lawyer.  I always put my tax rates in lookup tables because the rates change all the time.  (I was going to say that the rates change &#8220;constantly&#8221;, but that seemed oxymoronic.  Or something.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/09/change-named-constants-in-vba/#comment-17456</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 10 Nov 2005 14:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1282#comment-17456</guid>
		<description>&lt;p&gt;I would use  a lookup table as well, with one column  for StateRate and another for CityRate.  The formula could sum the two rates to calculate the applicable rate.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I would use  a lookup table as well, with one column  for StateRate and another for CityRate.  The formula could sum the two rates to calculate the applicable rate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/09/change-named-constants-in-vba/#comment-17455</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Thu, 10 Nov 2005 01:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1282#comment-17455</guid>
		<description>&lt;p&gt;I would suggest having a table in the workbook and use lookups which would be based on the province / country if that is required.&lt;/p&gt;
&lt;p&gt;More common situation for me at least is with respect to currencies and cross rates to NZD against AUD, GBP, EUR, USD, JPY, RMB etc.  Sometimes a client will come back and say that, for example, transactions with China will use USD rather than RMB which means I just change the rates for that country. &lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;Alan.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I would suggest having a table in the workbook and use lookups which would be based on the province / country if that is required.</p>
<p>More common situation for me at least is with respect to currencies and cross rates to NZD against AUD, GBP, EUR, USD, JPY, RMB etc.  Sometimes a client will come back and say that, for example, transactions with China will use USD rather than RMB which means I just change the rates for that country. </p>
<p>HTH,</p>
<p>Alan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/09/change-named-constants-in-vba/#comment-17454</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Thu, 10 Nov 2005 00:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1282#comment-17454</guid>
		<description>&lt;p&gt;I think I&#039;d just show the state tax rate on the invoice in a celll with a lookup to another sheet with the various rates.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I think I&#8217;d just show the state tax rate on the invoice in a celll with a lookup to another sheet with the various rates.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

