<?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: Ten Practical Tips for Using Excel VBA Macros in Financial Models</title>
	<atom:link href="http://www.financialmodelingguide.com/analytical-tools/excel-vba-macro/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.financialmodelingguide.com/analytical-tools/excel-vba-macro/</link>
	<description>Free online resource for financial modeling advice, tips and tricks</description>
	<lastBuildDate>Wed, 04 May 2011 07:24:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Roy Cox</title>
		<link>http://www.financialmodelingguide.com/analytical-tools/excel-vba-macro/comment-page-1/#comment-6429</link>
		<dc:creator>Roy Cox</dc:creator>
		<pubDate>Sun, 01 Nov 2009 12:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.financialmodelingguide.com/?p=233#comment-6429</guid>
		<description>I see no reason why code procedures should be limited to 10 or 15 lines of code.

To make sure that Excel interprets a number correctly use one of the following:

CLng - converts to a Long
CDbl - converts to Double
CCur - converts to Currency
CInt - converts to Integer

Example:

 Dim MyValue As Double

    MyValue = CDbl(Sheet1.Cells(1, 1).Value) * 5

    MsgBox MyValue

So if A1 contains a number entered as Text the code will still return a correct value without the Type Mismatch error</description>
		<content:encoded><![CDATA[<p>I see no reason why code procedures should be limited to 10 or 15 lines of code.</p>
<p>To make sure that Excel interprets a number correctly use one of the following:</p>
<p>CLng &#8211; converts to a Long<br />
CDbl &#8211; converts to Double<br />
CCur &#8211; converts to Currency<br />
CInt &#8211; converts to Integer</p>
<p>Example:</p>
<p> Dim MyValue As Double</p>
<p>    MyValue = CDbl(Sheet1.Cells(1, 1).Value) * 5</p>
<p>    MsgBox MyValue</p>
<p>So if A1 contains a number entered as Text the code will still return a correct value without the Type Mismatch error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Siva</title>
		<link>http://www.financialmodelingguide.com/analytical-tools/excel-vba-macro/comment-page-1/#comment-2384</link>
		<dc:creator>Siva</dc:creator>
		<pubDate>Mon, 27 Apr 2009 14:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.financialmodelingguide.com/?p=233#comment-2384</guid>
		<description>Nice collection of tips. The most important aspect about excel VBA macros is the security. Excel has four levels of security for VBA macros. By default it is set at &#039;Medium&#039; level whereby when a worksheet with a macro is opened it asks for permission to allow the macros to run. There are some anti-virus programs which turn this security level to &#039;High&#039; which doesn&#039;t allow the macros to be executed without lowering the security level. While submitting the worksheet as a part of deck to the prospective investors, it would be helpful to include 3-4 lines direction on these settings. I found some very useful information about financial models in www.financialmodel.net</description>
		<content:encoded><![CDATA[<p>Nice collection of tips. The most important aspect about excel VBA macros is the security. Excel has four levels of security for VBA macros. By default it is set at &#8216;Medium&#8217; level whereby when a worksheet with a macro is opened it asks for permission to allow the macros to run. There are some anti-virus programs which turn this security level to &#8216;High&#8217; which doesn&#8217;t allow the macros to be executed without lowering the security level. While submitting the worksheet as a part of deck to the prospective investors, it would be helpful to include 3-4 lines direction on these settings. I found some very useful information about financial models in <a href="http://www.financialmodel.net" rel="nofollow">http://www.financialmodel.net</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

