<?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/"
	>

<channel>
	<title>Accounting systems &#187; Excel</title>
	<atom:link href="http://accountingsystems.ie/?feed=rss2&#038;tag=excel" rel="self" type="application/rss+xml" />
	<link>http://accountingsystems.ie</link>
	<description>Our free tips and tricks blog for Intact accounts, Sage, Syspro, Quickbook and bits of SAP and Oracle</description>
	<lastBuildDate>Tue, 06 Jul 2010 19:48:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Repeating a cell value in Excel</title>
		<link>http://accountingsystems.ie/?p=28</link>
		<comments>http://accountingsystems.ie/?p=28#comments</comments>
		<pubDate>Fri, 30 Apr 2010 18:47:11 +0000</pubDate>
		<dc:creator>Patrick Jones</dc:creator>
				<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://accountingsystems.ie/?p=28</guid>
		<description><![CDATA[This is a request I have had a number of times.. In excel you want to copy the value of the cell above your current position if your current position is blank
To start this macro click on a row 2 or lower with a value in the cell above, change the value of x in [...]]]></description>
			<content:encoded><![CDATA[<p>This is a request I have had a number of times.. In excel you want to copy the value of the cell above your current position if your current position is blank</p>
<p>To start this macro click on a row 2 or lower with a value in the cell above, change the value of x in the macro to the number of lines you want ot repeat</p>

<div class="wp_syntax"><div class="code"><pre class="vb" style="font-family:monospace;"><span style="color: #000080;">Sub</span> Macro1()
<span style="color: #008000;">'
</span><span style="color: #008000;">' change the value of x to the number of lines to fill
</span><span style="color: #000080;">Dim</span> I, x
x=1500
<span style="color: #000080;">Do</span> <span style="color: #000080;">While</span> I &lt; x
    <span style="color: #000080;">If</span> ActiveCell.Value = <span style="color: #800000;">&quot;&quot;</span> <span style="color: #000080;">Then</span>
        ActiveCell.Offset(-1, 0).<span style="color: #000080;">Select</span>
        Selection.Copy
        ActiveCell.Offset(1, 0).<span style="color: #000080;">Select</span>
        ActiveSheet.Paste
    <span style="color: #000080;">End</span> <span style="color: #000080;">If</span>
    ActiveCell.Offset(1, 0).<span style="color: #000080;">Select</span>
    I = I + 1
<span style="color: #000080;">Loop</span>
<span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://accountingsystems.ie/?feed=rss2&amp;p=28</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
