<?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: Edit Excel SpredSheet through PowerShell</title>
	<atom:link href="http://www.powershell.nu/2009/02/05/edit-excel-spredsheet-through-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.powershell.nu/2009/02/05/edit-excel-spredsheet-through-powershell/</link>
	<description>Windows PowerShell</description>
	<lastBuildDate>Fri, 03 Feb 2012 09:00:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: TomB</title>
		<link>http://www.powershell.nu/2009/02/05/edit-excel-spredsheet-through-powershell/comment-page-1/#comment-9722</link>
		<dc:creator>TomB</dc:creator>
		<pubDate>Sat, 19 Nov 2011 04:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershell.nu/?p=400#comment-9722</guid>
		<description>&lt;a href=&quot;#comment-9716&quot; rel=&quot;nofollow&quot;&gt;@Rob  &lt;/a&gt; 

&lt;b&gt;
$xlShiftDown = -4121

$xlShiftRight = -4161

$Lines14 = $Sheet.Range(&quot;1:4&quot;)

$null = $Range14.insert($xlShiftDown) 

&lt;/b&gt;
will add 4 lines at the top

Change the range to (&quot;1:1&quot;) to and one row
&lt;b&gt;

$ColumnsBC = $Sheet.Range(&quot;2:3)

$Null = $ColumnsBC.Insert($xlShiftRight)

&lt;/b&gt;
If you didn&#039;t need the range anymore you could have said
&lt;b&gt;
$Null = $Sheet.Range(1:1).insert(-4121) 
&lt;/b&gt;
and not have anything to cleanup
</description>
		<content:encoded><![CDATA[<p><a href="#comment-9716" rel="nofollow">@Rob  </a> </p>
<p><b><br />
$xlShiftDown = -4121</p>
<p>$xlShiftRight = -4161</p>
<p>$Lines14 = $Sheet.Range(&#8220;1:4&#8243;)</p>
<p>$null = $Range14.insert($xlShiftDown) </p>
<p></b><br />
will add 4 lines at the top</p>
<p>Change the range to (&#8220;1:1&#8243;) to and one row<br />
<b></p>
<p>$ColumnsBC = $Sheet.Range(&#8220;2:3)</p>
<p>$Null = $ColumnsBC.Insert($xlShiftRight)</p>
<p></b><br />
If you didn&#8217;t need the range anymore you could have said<br />
<b><br />
$Null = $Sheet.Range(1:1).insert(-4121)<br />
</b><br />
and not have anything to cleanup</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.powershell.nu/2009/02/05/edit-excel-spredsheet-through-powershell/comment-page-1/#comment-9716</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Mon, 31 Oct 2011 07:09:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershell.nu/?p=400#comment-9716</guid>
		<description>Hi,

Is there also a powershell cmdlet to insert 1 row at the top of the sheet?

Grtz Rob</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Is there also a powershell cmdlet to insert 1 row at the top of the sheet?</p>
<p>Grtz Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark in Ohio</title>
		<link>http://www.powershell.nu/2009/02/05/edit-excel-spredsheet-through-powershell/comment-page-1/#comment-3984</link>
		<dc:creator>Mark in Ohio</dc:creator>
		<pubDate>Wed, 17 Mar 2010 18:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.powershell.nu/?p=400#comment-3984</guid>
		<description>Just wanted to post a quick Thank You!  I was having problems getting Excel to close after saving.
I tried a solution I found elsewhere:  [System.Runtime.Interopservices.Marshal]::ReleaseCOMObject($Excel)
But that didn&#039;t work, so I kept digging.  Your solution worked perfectly.

BTW, I found that I didn&#039;t have to assign a cell to a variable and use Value2 to put data into it.  I&#039;m able to accomplish it just with doing:   $WorkSheet.Cells.Item($Row,1) = &quot;Data2010&quot;

Saves a couple lines of code, and less variables to Null out before closing.</description>
		<content:encoded><![CDATA[<p>Just wanted to post a quick Thank You!  I was having problems getting Excel to close after saving.<br />
I tried a solution I found elsewhere:  [System.Runtime.Interopservices.Marshal]::ReleaseCOMObject($Excel)<br />
But that didn&#8217;t work, so I kept digging.  Your solution worked perfectly.</p>
<p>BTW, I found that I didn&#8217;t have to assign a cell to a variable and use Value2 to put data into it.  I&#8217;m able to accomplish it just with doing:   $WorkSheet.Cells.Item($Row,1) = &#8220;Data2010&#8243;</p>
<p>Saves a couple lines of code, and less variables to Null out before closing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

