<?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>Excelling</title>
	<atom:link href="http://excelling.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://excelling.wordpress.com</link>
	<description>Getting better...not just in Excel, but in life</description>
	<lastBuildDate>Sun, 14 Dec 2008 23:23:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='excelling.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Excelling</title>
		<link>http://excelling.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://excelling.wordpress.com/osd.xml" title="Excelling" />
	<atom:link rel='hub' href='http://excelling.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Relative Cell Referencing with Offset</title>
		<link>http://excelling.wordpress.com/2008/12/14/relative-cell-referencing/</link>
		<comments>http://excelling.wordpress.com/2008/12/14/relative-cell-referencing/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 23:22:00 +0000</pubDate>
		<dc:creator>parkercpa</dc:creator>
				<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://excelling.wordpress.com/?p=58</guid>
		<description><![CDATA[There are times when you are recording a macro or writing code that you need to make a reference to a cell and that reference is not absolute, meaning that it&#8217;s position is relative to another cell whose position can change.   One example of this I can think of is if you are importing data [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=58&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are times when you are recording a macro or writing code that you need to make a reference to a cell and that reference is not absolute, meaning that it&#8217;s position is relative to another cell whose position can change.   One example of this I can think of is if you are importing data into a spreadsheet and simply want to total it.  If the number of items in the list never changes the relative reference would not be necessary, but if the number of items <em><strong>can </strong></em>change, then you are better off using the relative reference instead.  In the first illustration if you knew that your total would always be in cell A9, then you could just code the sum formula in cell A9.  But in the second illustration the total is now needed to be in cell A10, and a relative reference is needed.</p>
<div id="attachment_64" class="wp-caption alignleft" style="width: 237px"><img class="size-full wp-image-64" title="illustrationsum12" src="http://excelling.files.wordpress.com/2008/12/illustrationsum12.jpg?w=227&#038;h=232" alt="Sum Formula Resides in Cell A9" width="227" height="232" /><p class="wp-caption-text">Sum Formula Resides in Cell A9</p></div>
<div id="attachment_65" class="wp-caption alignright" style="width: 235px"><img class="size-full wp-image-65" title="illustrationsum2" src="http://excelling.files.wordpress.com/2008/12/illustrationsum2.jpg?w=225&#038;h=212" alt="Sum Formula Needs to be Relative to the Last Number in the List" width="225" height="212" /><p class="wp-caption-text">Sum Formula Needs to be Relative to the Last Number in the List</p></div>
<p>If you are simply recording a macro when you type in the sum formula then the macro recorder will  simply tell Excel to put the sum formula in cell A9 always.  If  you want it to always be at the bottom of the list of numbers then you will need to change the way the macro records (by changing the macro recorder to relative reference) or the way you write the code.  In order to make the code &#8216;know&#8217; to go to the bottom of the list you will need to use the following code:</p>
<pre class="brush: vb;">
Range(&quot;A1&quot;).Select
    Selection.End(xlDown).Offset(1,0)).Select
</pre>
<p>For either illustration this formula would get you to the cell where you will need to type in the sum formula. I am stopping here for the simple fact that I am still learning all of this and I don&#8217;t know how to code the sum formula yet with a relative reference built into it. I still have to figure that part out and will post it in my next update.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/excelling.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/excelling.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/excelling.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/excelling.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/excelling.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/excelling.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/excelling.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/excelling.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/excelling.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/excelling.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/excelling.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/excelling.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/excelling.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/excelling.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=58&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://excelling.wordpress.com/2008/12/14/relative-cell-referencing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9502624469418b77781f0a29c8c61ba1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">parkercpa</media:title>
		</media:content>

		<media:content url="http://excelling.files.wordpress.com/2008/12/illustrationsum12.jpg" medium="image">
			<media:title type="html">illustrationsum12</media:title>
		</media:content>

		<media:content url="http://excelling.files.wordpress.com/2008/12/illustrationsum2.jpg" medium="image">
			<media:title type="html">illustrationsum2</media:title>
		</media:content>
	</item>
		<item>
		<title>Rearranging Life</title>
		<link>http://excelling.wordpress.com/2008/11/02/rearranging-life/</link>
		<comments>http://excelling.wordpress.com/2008/11/02/rearranging-life/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 12:39:35 +0000</pubDate>
		<dc:creator>parkercpa</dc:creator>
				<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://excelling.wordpress.com/?p=54</guid>
		<description><![CDATA[I&#8217;m under no illusion that people are lining up to view this site, but I did want to at least explain my reasons for not posting lately for the people that do stumble onto this site. We recently rearranged the furniture in our living room to expand the area that our one year old daughter [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=54&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://excelling.files.wordpress.com/2008/11/computer-baby.jpg"><img class="alignleft size-full wp-image-55" title="computer-baby" src="http://excelling.files.wordpress.com/2008/11/computer-baby.jpg?w=240&#038;h=181" alt="" width="240" height="181" /></a> I&#8217;m under no illusion that people are lining up to view this site, but I did want to at least explain my reasons for not posting lately for the people that do stumble onto this site.</p>
<p>We recently rearranged the furniture in our living room to expand the area that our one year old daughter can roam around in.  Before the move there was a baby gate between her an my recliner (where most of my computing is done).  Since we&#8217;ve moved things around she now has access to my chair and when my computer is in hand she very much wants to tap away at it like she sees daddy doing, which makes typing a much greater challenge.</p>
<p>I just wanted to say I haven&#8217;t given up on this site, I&#8217;m just having a tough time figuring out when is another good time for me to do my writing.  Stay tuned&#8230;more will come.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/excelling.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/excelling.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/excelling.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/excelling.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/excelling.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/excelling.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/excelling.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/excelling.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/excelling.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/excelling.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/excelling.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/excelling.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/excelling.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/excelling.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=54&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://excelling.wordpress.com/2008/11/02/rearranging-life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9502624469418b77781f0a29c8c61ba1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">parkercpa</media:title>
		</media:content>

		<media:content url="http://excelling.files.wordpress.com/2008/11/computer-baby.jpg" medium="image">
			<media:title type="html">computer-baby</media:title>
		</media:content>
	</item>
		<item>
		<title>Referring To Named Ranges</title>
		<link>http://excelling.wordpress.com/2008/10/04/referring-to-named-ranges/</link>
		<comments>http://excelling.wordpress.com/2008/10/04/referring-to-named-ranges/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 15:00:22 +0000</pubDate>
		<dc:creator>parkercpa</dc:creator>
				<category><![CDATA[VBA]]></category>
		<category><![CDATA[referring to a range]]></category>

		<guid isPermaLink="false">http://excelling.wordpress.com/?p=49</guid>
		<description><![CDATA[Excel&#8217;s VBA help file goes into referring to named ranges without much discussion on how to name a range.  Most people who have used excel for some time know how to name a range. On the off chance you don&#8217;t, one of the easiest ways is to select the area that will now be know [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=49&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Excel&#8217;s VBA help file goes into referring to named ranges without much discussion on how to name a range.  Most people who have used excel for some time know how to name a range. On the off chance you don&#8217;t, one of the easiest ways is to select the area that will now be know by the &#8216;name&#8217; and type that name in the name box which is located just to the left of the formula bar as shown by the arrow in the illustration below.</p>
<p><a href="http://excelling.files.wordpress.com/2008/10/excel11.jpg"><img class="aligncenter size-full wp-image-51" title="excel11" src="http://excelling.files.wordpress.com/2008/10/excel11.jpg?w=593&#038;h=409" alt="" width="593" height="409" /></a></p>
<p>I&#8217;m certainly no expert in writing VBA code and get most of my coding done by recording macros. One thing I&#8217;ve noticed about Excel (at least in version 2003) is that when recording macros, it does not seem to like you naming ranges in this way.  So when I need to name a range while recording a macro I will name a range using another method. That way is by selecting the Insert menu and chosing Name &#8211;&gt; Define.  The resulting dialog box allows you to name the range and even tweak it somewhat in the &#8216;refers to&#8217; section of the dialog box. I haven&#8217;t ever had much of a need to tweak it, but I&#8217;ve seen some pretty cool stuff done to make the range dynamic in nature. Perhaps one day I&#8217;ll research that and do a post on it.  By defining a range in this way, Excel writes the following code:</p>
<pre class="brush: vb;">

ActiveWorkbook.Names.Add Name:=&quot;test&quot;, RefersToR1C1:=&quot;=Sheet1!R7C3:R17C4&quot;
</pre>
<p>In this case I&#8217;ve used the name <em>test </em>to describe the range C7 through D17.  I&#8217;m certain there are plenty of other ways to define a range of cells, but for a beginner this is the easiest, plus you can let the macro do the heavy lifting for you.</p>
<p>Once you&#8217;ve defined a range it is easy later in the code to refer to that range by simply referring to the name instead of referring to the actual cells. For example if you wanted to return to the range to make it bold you could use the following code:</p>
<pre class="brush: vb;">

Application.Goto Reference:=&quot;test&quot;
    Selection.Font.Bold = True
</pre>
<p>If the range you are referring to is in another workbook you can simply add the workbook name within the quotes like such:</p>
<pre class="brush: vb;">

Application.Goto Reference:=&quot;Workbook.xls!Test&quot;
     Selection.ClearContents
</pre>
<p>That&#8217;s pretty basic and doesn&#8217;t go beyond doing anything with the range once you&#8217;ve referred to it, but I&#8217;ll save that for another post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/excelling.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/excelling.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/excelling.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/excelling.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/excelling.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/excelling.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/excelling.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/excelling.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/excelling.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/excelling.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/excelling.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/excelling.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/excelling.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/excelling.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=49&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://excelling.wordpress.com/2008/10/04/referring-to-named-ranges/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9502624469418b77781f0a29c8c61ba1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">parkercpa</media:title>
		</media:content>

		<media:content url="http://excelling.files.wordpress.com/2008/10/excel11.jpg" medium="image">
			<media:title type="html">excel11</media:title>
		</media:content>
	</item>
		<item>
		<title>What Does Excelling Mean?</title>
		<link>http://excelling.wordpress.com/2008/09/28/what-does-excelling-mean/</link>
		<comments>http://excelling.wordpress.com/2008/09/28/what-does-excelling-mean/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 12:51:58 +0000</pubDate>
		<dc:creator>parkercpa</dc:creator>
				<category><![CDATA[Personal Growth]]></category>
		<category><![CDATA[self improvement]]></category>
		<category><![CDATA[self help]]></category>

		<guid isPermaLink="false">http://excelling.wordpress.com/?p=44</guid>
		<description><![CDATA[As the name implies, this site is primarily about Microsoft Excel and my desire to learn more about it and visual basic, but it is also about my other passion in life&#8230;self help &#38; self improvement and my desire to excel.  So from time to time I will cover what&#8217;s going on in my life [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=44&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As the name implies, this site is primarily about Microsoft Excel and my desire to learn more about it and visual basic, but it is also about my other passion in life&#8230;self help &amp; self improvement and my desire to excel.  So from time to time I will cover what&#8217;s going on in my life and how I&#8217;m personally trying to excel.</p>
<div id="attachment_45" class="wp-caption alignleft" style="width: 310px"><a href="http://excelling.files.wordpress.com/2008/09/2894628366_ed4d20a914.jpg"><img class="size-medium wp-image-45" title="2894628366_ed4d20a914" src="http://excelling.files.wordpress.com/2008/09/2894628366_ed4d20a914.jpg?w=300&#038;h=225" alt="Which are you working on...the 20% or the 80%?" width="300" height="225" /></a><p class="wp-caption-text">Which are you working on...the 20% or the 80%?</p></div>
<p>I just got finished reading <a href="http://www.fourhourworkweek.com/" target="_blank"><em>The 4-Hour Workweek </em></a>by Tim Ferris and I found it to be a very eye opening read.  The main reason I read it was to learn how to get more done, but the book covered so much more. Mr. Ferris has a fantastic knack for looking at things through a different lens.  The main focus of the book is not so much how to get more done, but how to get the important things done and to ignore the non-important things to free up your time.  In the book he mentions both the <a href="http://www.pinnicle.com/Articles/Pareto_Principle/pareto_principle.html" target="_blank">Pareto Principle </a>and <a href="http://www.lifehack.org/articles/productivity/how-to-use-parkinsons-law-to-your-advantage.html" target="_blank">Parkinson&#8217;s Law</a>, both of which I had heard of and knew about, but had never considered combining the two, which Mr. Ferris does with great apparent success. The short version is that if 20 percent of your work provides you with 80 percent of your results, then focus on the 20 percent and ignore, or delegate, the other 80 percent, but don&#8217;t just stop there.  If you don&#8217;t focus on the amount of time you spend on that 20 percent, it will balloon up to 100 percent, based on Parkinson&#8217;s law.  It&#8217;s an easy enough concept to understand, but not always as easy to implement.</p>
<p>One of the biggest challenges I&#8217;ve had is the notion of <em>outsourcing </em>that 80 percent. If you don&#8217;t have someone to delegate to, you can hire someone (i.e. a virtual assistant) to do the work for you. It is a fascinating concept I had never considered before reading this book.  It really takes a commitment to focus on <span style="text-decoration:underline;">what </span>of your work you can give to someone else, and I honestly haven&#8217;t spent the time to really get to that point.  In my job, I don&#8217;t honestly expect to get to the point that Mr. Ferris does in which he travels and spends just a few hours a week on &#8220;work&#8221;.  Of course he addresses that point in his book by telling you, albeit in summary form, how to start your own business.  He does provide extensive resources for the reader to follow up on, on their own, which is probably the right way to go, because can one person really give you a blueprint to start your own business? I don&#8217;t think so and I don&#8217;t believe Mr. Ferris does either.  He does give you the steps involved in how he built his business and how he believes you can follow in his footsteps with your own ideas to replicate his success.</p>
<p>I will admit, while reading through the portion of the book concerning starting your own business and the portion that discusses living life as a world traveler, I was a little miffed. I didn&#8217;t believe that this information was for me because it didn&#8217;t give me a step by step plan of what my business should be (since I don&#8217;t have a clue what that business would be) and I have kids and who in their right mind is going to travel the world with a bunch of kids in tow?  I will say that upon further reflection, I believe that he used the right approach on the business start up with generous resources provided and few absolute details and traveling does not seem quite as scary now.</p>
<p>I&#8217;m  intersted to hear if any of you out there have made any changes in your life that have truely given you a boost to your productivity.  Let me hear from you.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/excelling.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/excelling.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/excelling.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/excelling.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/excelling.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/excelling.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/excelling.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/excelling.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/excelling.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/excelling.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/excelling.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/excelling.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/excelling.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/excelling.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=44&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://excelling.wordpress.com/2008/09/28/what-does-excelling-mean/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9502624469418b77781f0a29c8c61ba1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">parkercpa</media:title>
		</media:content>

		<media:content url="http://excelling.files.wordpress.com/2008/09/2894628366_ed4d20a914.jpg?w=300" medium="image">
			<media:title type="html">2894628366_ed4d20a914</media:title>
		</media:content>
	</item>
		<item>
		<title>Saving and Restoring Your Excel Environment</title>
		<link>http://excelling.wordpress.com/2008/09/20/saving-and-restoring-your-excel-environment/</link>
		<comments>http://excelling.wordpress.com/2008/09/20/saving-and-restoring-your-excel-environment/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 14:54:15 +0000</pubDate>
		<dc:creator>parkercpa</dc:creator>
				<category><![CDATA[General Excel]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Excel Environment]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[Restore Excel Toolbar]]></category>
		<category><![CDATA[Restore Macros]]></category>

		<guid isPermaLink="false">http://excelling.wordpress.com/?p=39</guid>
		<description><![CDATA[Instead of Visual Basic, today I wanted to talk about something close to my heart, saving and restoring your toolbars, macros and add-ins.  Two days ago I was having problems with my computer and I decided I would get radical and instead of trying to track down what was probably a very simple issue I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=39&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Instead of Visual Basic, today I wanted to talk about something close to my heart, saving and restoring your toolbars, macros and add-ins.  Two days ago I was having problems with my computer and I decided I would get radical and instead of trying to track down what was probably a very simple issue I would just do a system restore from a recent image I had made of my hard drive.</p>
<p>Let me back track a little.  About a month ago I did a wipe of my system and did a clean install of everything and had recently heard about <a title="MaxBlast" href="http://www.seagate.com/ww/v/index.jsp?locale=en-US&amp;name=maxblast-eula&amp;vgnextoid=65af7bb4d9391110VgnVCM100000f5ee0a0aRCRD" target="_blank">MaxBlast</a>, a free drive imaging program, so I decided that after my clean install I would make an image of my system to an external USB hard drive for a quick restore instead of spending LITERALLY a whole day reinstalling all my programs.  Since my clean install I&#8217;ve made a couple of additional images and thought that eveyone should be envious of me and how awesome I am.  Little did I know.</p>
<p>Long story short, the restore process hosed my computer. Numerous attempts at all of the drive images failed.  I&#8217;ve read a lot of people saying that they liked MaxBlast, especially since it is a branch of the <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://www.acronis.com/enterprise/products/ATICW/comparison.html?source=us_google&amp;ad=ati&amp;gclid=CNqus_OD6JUCFQNHFQod_R4xew" target="_blank">Acronis Ture Image</a> software which has been ranking top of the list on <a href="http://www.pcmag.com/article2/0,2817,2259200,00.asp" target="_blank">PC Mag&#8217;s reviews</a>.  Sad fact is that it didn&#8217;t work for me.  Now I&#8217;ve done the good ol&#8217; fashioned wipe and reinstall and am back up and running and that gets me to what I really wanted to talk about&#8230;being able to easily restore your Excel environment after a &#8216;wipe job&#8217;.</p>
<p>Fortunately I&#8217;m a freak about backing up my stuff and have learned over the years how to implement a <em>completely </em>painless way of getting my documents and other important &#8220;things&#8221; backed up daily or more or less often if needed.</p>
<p>Here is what I back up in regards to Excel:</p>
<ol>
<li><strong>personal.xls</strong> &#8211; This is the file that houses all of your macros, or at least the macros that you make available to all spreadsheets in Excel. This does not include macros that get recorded and saved directly to a workbook. This is a choice you make when you record your macro and select the &#8216;store macro in:&#8217; drop down.  This file is normally saved in the following directory: C:\Documents and Settings\<em>username</em>\Application Data\Microsoft\Excel\XLSTART.  I&#8217;m using Windows XP and Excel 2003. It may be slightly different if you are using a different version of Excel and/or Vista.</li>
<li><strong>Excel11.xlb </strong>- Depending on the version of Excel you are using this may be named something slightly different.  What you are looking for is the .xlb and you will find it in the following location: C:\Documents and Settings\<em>username</em>\Application Data\Microsoft\Excel. This is just one folder up from where the personal.xls file is saved. This file is the one that houses all of your various buttons and toolbars that you&#8217;ve spent years getting just the way you like it. If you&#8217;ve made buttons for you macros and then gone in and edited the button image to something other than the few crappy canned images that are provided, this is a must save file.</li>
<li><strong>Add-ins</strong> &#8211; The location is: C:\Documents and Settings\<em>username</em>\Application Data\Microsoft\AddIns. This is not a specific file, and you may not even have anything here. If you&#8217;ve downloaded add-ins (like I have), this is the place to put them.  If they are in this folder they will show up in the list of available add-ins when you go to Tools &#8211;&gt; Add-ins&#8230;</li>
</ol>
<p>Now that you know the location of these critical files Here&#8217;s what you do to make sure they are backed up.  Download Karen Kenworthy&#8217;s Free <a href="http://www.karenware.com/powertools/ptreplicator.asp" target="_blank">Replicator</a>.  You can easily set this program up to start with Windows and perform backups at scheduled times and either copy these files to your My Documents or to an external hard drive or where ever makes sense to you.  Now they will be available to you whenever you need to put things back the way they were before and do so quickly.</p>
<p>I hope that someone finds this useful and if you have any other ideas on saving and restoring your Excel environment OR saving and restoring your computer please let me know about it, I&#8217;d love to hear from you.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/excelling.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/excelling.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/excelling.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/excelling.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/excelling.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/excelling.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/excelling.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/excelling.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/excelling.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/excelling.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/excelling.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/excelling.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/excelling.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/excelling.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=39&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://excelling.wordpress.com/2008/09/20/saving-and-restoring-your-excel-environment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9502624469418b77781f0a29c8c61ba1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">parkercpa</media:title>
		</media:content>
	</item>
		<item>
		<title>Referring to Rows &amp; Columns</title>
		<link>http://excelling.wordpress.com/2008/09/14/referring-to-rows-columns/</link>
		<comments>http://excelling.wordpress.com/2008/09/14/referring-to-rows-columns/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 21:53:15 +0000</pubDate>
		<dc:creator>parkercpa</dc:creator>
				<category><![CDATA[VBA]]></category>
		<category><![CDATA[Refer to cells]]></category>
		<category><![CDATA[Refer to range]]></category>

		<guid isPermaLink="false">http://excelling.wordpress.com/?p=36</guid>
		<description><![CDATA[In the previous post I spoke about referring to cells and ranges of cells, but in the instance you need to refer to an entire row or an entire column you can do so with what was learned previously, but it would be rather cumbersome. Visual Basic has a way for us to so simply. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=36&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the previous post I spoke about referring to cells and ranges of cells, but in the instance you need to refer to an entire row or an entire column you can do so with what was learned previously, but it would be rather cumbersome. Visual Basic has a way for us to so simply. The format is just like what we used when referring to a range, but instead of the word Range we&#8217;ll use the word Rows or Columns. A couple of examples are:</p>
<pre class="brush: vb;">
Rows(1)  'refers to row 1
Columns(1)  'refers to column 1 or you can use...
Columns(&quot;A&quot;)  'again refers to the 1st column and has to have the quotes
Columns  'no numbers or letters refers to ALL columns on the worksheet
</pre>
<p>You can also select multiple rows or columns by separating with commas like the following examples:</p>
<pre class="brush: vb;">
Rows(&quot;1:1,3:3&quot;)  'refers to multiple non-contiguous rows, i.e. row 1 AND row 3
Rows(&quot;1:3&quot;)  'refers to multiple contiguous rows, i.e. rows 1 THROUGH 3
</pre>
<p>In my next post I&#8217;ll show you a shortcut notation for referring to cells.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/excelling.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/excelling.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/excelling.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/excelling.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/excelling.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/excelling.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/excelling.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/excelling.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/excelling.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/excelling.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/excelling.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/excelling.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/excelling.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/excelling.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/excelling.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/excelling.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=36&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://excelling.wordpress.com/2008/09/14/referring-to-rows-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9502624469418b77781f0a29c8c61ba1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">parkercpa</media:title>
		</media:content>
	</item>
		<item>
		<title>Referring to Cells and Ranges of Cells</title>
		<link>http://excelling.wordpress.com/2008/09/13/referring-to-cells-and-ranges-of-cells/</link>
		<comments>http://excelling.wordpress.com/2008/09/13/referring-to-cells-and-ranges-of-cells/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 14:06:58 +0000</pubDate>
		<dc:creator>parkercpa</dc:creator>
				<category><![CDATA[VBA]]></category>
		<category><![CDATA[Refer to cells]]></category>
		<category><![CDATA[Refer to range]]></category>

		<guid isPermaLink="false">http://excelling.wordpress.com/?p=32</guid>
		<description><![CDATA[Now that you&#8217;ve got a workbook open, it is very likely that one of the first things you&#8217;ll need to do is to refer to a cell or a range of cells in order to put data there or to manipulate the data that is already there. It takes one simple line of code to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=32&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now that you&#8217;ve got a workbook open, it is very likely that one of the first  things you&#8217;ll need to do is to refer to a cell or a range of cells in order to  put data there or to manipulate the data that is already there. It takes one  simple line of code to do so and the format is as follows: Range(&#8220;<em>cell  range</em>&#8220;). Following is a number of variations to select a number of  different ranges.</p>
<pre class="brush: vb;">
Range(&quot;A1&quot;)  'select cell A1
Range(&quot;A1:B2&quot;)   'select cells from A1 through B2
Range(&quot;A1:B2,A3:B3&quot;)  'select a non-contiguous range of cells
Range(&quot;A:A&quot;)  'select column A
Range(&quot;1:1&quot;)   'select row 1</pre>
<p>The hardest part for me to remember is  the quotation marks. It is very similar to using a &#8216;sum&#8217; formula in the way you  present the cells in the parenthesis&#8230;just remember the quotes. This is the  most common way you will see a range of cells or a single cell referred to when  looking at VBA code. This is called the A1 notation obviously because it refers  to cells using the letter (for the column) and number (for the  row).</p>
<p>Sometimes it makes sense to refer to cells in a different way  using index numbers. What that means is using numbers to refer to both the  column and the row.  The confusing part for me is that the notation gets  reversed from what you are used to when using the A1 notation. A1 notation  starts with the letter, i.e. the column, and then the number, i.e. the row.  Using the index number reverses that, referring to the row first and then the  column. Other than only seeing numbers to clue you in that the index numbers are  being used as opposed to A1 notation, the word &#8216;range&#8217; is also not used. Instead  the word &#8216;cell&#8217; is used.</p>
<p>The reason for this type of notation is that it  is useful when using a counter or other method, such as looping to increment the  cell location you are referring to. Below is an example used in Excel&#8217;s help  file to show the use of the Index  Notation:</p>
<pre class="brush: vb;">
Worksheets(&quot;Sheet1&quot;).Cells(6,1).Value = 10</pre>
<p>This line of  code tells Excel to find the cell that is in the 6th row and 1st column (Cell A6  using A1 notation)on Sheet1 and make its value equal to 10. Excel&#8217;s help file  goes on to show an example of how this would be used if it were looped by  showing the following code:</p>
<pre class="brush: vb;">
Sub CycleThrough()
    Dim Counter As Integer
    For Counter = 1 To 20
        Worksheets(&quot;Sheet1&quot;).Cells(Counter, 3).Value = Counter
    Next Counter
End Sub</pre>
<p>If you were going through the help file this would  show you a number of things that would be completely new to you that wouldn&#8217;t  make any sense but I think it is simple enough that you could get the jist of  how it would be used.  Since I&#8217;ve put the code out there I will explain the  steps that this code is running through in English.</p>
<p><strong>Sub  CycleThrough()</strong> is the opening of the VBA code. All code starts with the  word Sub and then the name of the macro followed with the open and closed  partenthesis.</p>
<p><strong>Dim Counter As Integer.</strong> This tells Excel  to create a variable called Counter and make that variable an integer.</p>
<p><strong>For Counter = 1 To 20</strong>. This starts a For Next loop and  tells Excel that for every time you go through this loop find the variable named  Counter and assign it the value of 1 until you get to the &#8216;Next&#8217; line. Then use  the value of 2, then 3, then 4 and so on until 20 is reached.</p>
<p><strong>Worksheets(&#8220;Sheet1&#8243;).Cells(Counter, 3).Value =  Counter</strong>.  This is where the value of the Counter plays its part. The  first time through the loop Excel has assigned the value of 1 to the variable  Counter.  In essence you can invision this line of code rewritten with the  number 1 in the place of the word Counter.  The first time through this loop  Excel will find the cell that is in the first row down and third column over  (this would be cell C1) on Sheet1 and make it value equal to 1, which is the  value currently being held for the variable Counter. The next time the loop runs  through it will move to cell C2, the 2nd row down and 3rd column over, and make  its value equal to 2.</p>
<p><strong>Next Counter</strong>. This moves the code  back up to the For Counter line and increments the number up by one.</p>
<p><strong>End Sub</strong>. This ends the code.</p>
<p>That gets off the  topic a bit, but it does show how and why you would use this variation of  notation to refer to a cell.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/excelling.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/excelling.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/excelling.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/excelling.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/excelling.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/excelling.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/excelling.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/excelling.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/excelling.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/excelling.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/excelling.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/excelling.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/excelling.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/excelling.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/excelling.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/excelling.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=32&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://excelling.wordpress.com/2008/09/13/referring-to-cells-and-ranges-of-cells/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9502624469418b77781f0a29c8c61ba1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">parkercpa</media:title>
		</media:content>
	</item>
		<item>
		<title>Opening A Workbook</title>
		<link>http://excelling.wordpress.com/2008/08/30/opening-a-workbook/</link>
		<comments>http://excelling.wordpress.com/2008/08/30/opening-a-workbook/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 14:58:50 +0000</pubDate>
		<dc:creator>parkercpa</dc:creator>
				<category><![CDATA[VBA]]></category>
		<category><![CDATA[Opening Workbooks]]></category>

		<guid isPermaLink="false">http://excelling.wordpress.com/?p=20</guid>
		<description><![CDATA[Last week I talked about adding a new workbook using VBA.  This week I want to discuss opening a workbook via VBA. This is one that I use every day and find useful. In my case I use this when I dump data out of my accounting software and want to add it to an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=20&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week I talked about <a href="../2008/08/22/adding-a-new-workbook/">adding a  new workbook </a>using VBA.  This week I want to discuss <em>opening</em> a  workbook via VBA. This is one that I use every day and find useful. In my case I  use this when I dump data out of my accounting software and want to add it to an  existing spreadsheet that I use to analyize and accumulate that data. It is one  simple line of  code:</p>
<pre class="brush: vb;">Workbooks.Open(&quot;C:\SomeFolder\SomeSubFolder\YourFile.xls&quot;)</pre>
<p>It  doesn&#8217;t get much simpler than that. But it is not unusual for spreadsheets to  have more than one worksheet.  If you saved &#8220;YourFile.xls&#8221; when you were viewing  sheet2, then it will open on sheet2.  But what if the data you want to view  and/or manipulate is on sheet1?  Well unless you specifically tell VBA to  manipulate sheet1 it will execute the code on whatever sheet it opens to. So it  is always a good practice to tell VBA to select the sheet you want. You would do  so by using the following code:</p>
<pre class="brush: vb;">Worksheets(1).Activate</pre>
<p>Now  although that is pretty straight forward, it does require a little further  explanation. When you tell VBA to activate worksheets(1) what you are  specifically saying is that you want to activate the first worksheet in the  workbook <em>regardless of what it is named</em>.  It could be named sheet4, but  if it is the sheet furthest to the left it is worksheets(1) to VBA. So what do  you do if you want to make sure it actually selects sheet1 or maybe a sheet that  you&#8217;ve named Data?</p>
<p>Then you would change the above line of code to  this:</p>
<pre class="brush: vb;">Worksheets(&quot;Sheet1&quot;).Activate</pre>
<p>Instead of using the index  number <span style="font-family:Courier;">(1)</span> you simply put the name of the sheet in  quotes inside the parenthesis.</p>
<p>Another tweak to this that I have not  personally used is that instead of using the word <span style="font-family:Courier;">Worksheets</span> you can use the word <span style="font-family:Courier;">Sheets</span>. The difference between the two is that <span style="font-family:Courier;">Sheets</span> includes all sheets in the workbook which would  include any chart sheets or dialog sheets.  Conversely if you were to use  either:</p>
<pre class="brush: vb;">Charts(1).Activate
DialogSheets(1).Activate</pre>
<p>It would  function the same as <span style="font-family:Courier;">Worksheets(1).Activate</span> above.  It  would select the very first chart sheet or dialog sheet in the workbook  regardless of its name.  So if you wanted to make sure you selected the correct  chart when you opened up your YourFile.xls you would want to follow the same  principle and write it this way:</p>
<pre class="brush: vb;">Charts(&quot;Chart1&quot;).Activate</pre>
<p>Once  you&#8217;ve gotten this, you are well on your way to adding data to an existing  spreadsheet or retreiving data from an existing spreadsheet and using VBA to do  the heavy lifting for you.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/excelling.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/excelling.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/excelling.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/excelling.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/excelling.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/excelling.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/excelling.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/excelling.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/excelling.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/excelling.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/excelling.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/excelling.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/excelling.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/excelling.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/excelling.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/excelling.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=20&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://excelling.wordpress.com/2008/08/30/opening-a-workbook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9502624469418b77781f0a29c8c61ba1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">parkercpa</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding a new workbook</title>
		<link>http://excelling.wordpress.com/2008/08/22/adding-a-new-workbook/</link>
		<comments>http://excelling.wordpress.com/2008/08/22/adding-a-new-workbook/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 02:15:54 +0000</pubDate>
		<dc:creator>parkercpa</dc:creator>
				<category><![CDATA[VBA]]></category>
		<category><![CDATA[Adding workbook]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Adding a new workbook to Excel via Visual Basic can be done with one simple command: Workbooks.Add According to Excel&#8217;s Visual Basic Help file, the best method for doing so is to assign the workbook to an object variable. Doing so allows you to manipulate various properties of the workbook. Their example looks like this: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=1&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Adding a new workbook to Excel via Visual  Basic can be done with one simple  command:</p>
<pre class="brush: vb;">Workbooks.Add</pre>
<p>According to Excel&#8217;s Visual  Basic Help file, the best method for doing so is to assign the workbook to an  object variable. Doing so allows you to manipulate various properties of the  workbook. Their example looks like this:</p>
<pre class="brush: vb;">
Sub AddNew()
  Set  NewBook = Workbooks.Add
    With NewBook
      .Title = &quot;All  Sales&quot;
      .Subject = &quot;Sales&quot;
      .SaveAs  Filename:=&quot;Allsales.xls&quot;
    End With
End Sub</pre>
<p>What this code  does in English is the following:</p>
<pre class="brush: vb;">Sub AddNew()</pre>
<p>Creates a new  subroutine called &#8220;AddNew&#8221;</p>
<pre class="brush: vb;">Set NewBook =  Workbooks.Add</pre>
<p>Creates a variable named NewBook and makes it equal to  the VBA code for adding a workbook.  Until the the variable is changed, any time  reference is made to it, it will add a new workbook.</p>
<pre class="brush: vb;">
With NewBook
  .Title = &quot;All Sales&quot;
  .Subject = &quot;Sales&quot;
  .SaveAs  Filename:=&quot;Allsales.xls&quot;
End With</pre>
<p>This chunk of code actually  creates the new workbook and tacks on some attributes to it in the process with  the &#8216;With&#8217; statement.  The &#8216;Title=&#8217; portion adds a title to it which you can see  if in Excel you go to File &#8211;&gt; Properties.  Excel does not normally put  anything here by default and it can be different than the filename of the  spreadsheet. The &#8216;Subject=&#8221; portion adds a subject to it in the same way that  the Title did above and can be found the same way via File &#8211;&gt; Properties.  I&#8217;ve never used these properties before in my daily use of Excel and at this  point I&#8217;m not sure what purpose they serve, but that may be a later topic of  discussion.</p>
<p>The &#8216;SaveAs Filename:=&#8221; line actually saves the file with  the filename you specify within the quotation marks.  As this code is written  (with just a filename) it will save the spreadsheet to your My Documents folder.  If you wanted to save it to another location you would include the entire path  in the quotation marks such as &#8220;C:\Docuements and Settings\username\My  Documents\Sales\Allsales.xls&#8221;</p>
<p>And then of course the last line is</p>
<pre class="brush: vb;">End Sub</pre>
<p>which stops the subroutine.</p>
<p>Well&#8230;there you go.  You&#8217;ve just added a new workbook.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/excelling.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/excelling.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/excelling.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/excelling.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/excelling.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/excelling.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/excelling.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/excelling.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/excelling.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/excelling.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/excelling.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/excelling.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/excelling.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/excelling.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/excelling.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/excelling.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=excelling.wordpress.com&amp;blog=4580000&amp;post=1&amp;subd=excelling&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://excelling.wordpress.com/2008/08/22/adding-a-new-workbook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9502624469418b77781f0a29c8c61ba1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">parkercpa</media:title>
		</media:content>
	</item>
	</channel>
</rss>
