<?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>digitalMoto.net &#187; VSTO</title>
	<atom:link href="http://digitalMoto.net/blog/tag/vsto/feed/" rel="self" type="application/rss+xml" />
	<link>http://digitalMoto.net/blog</link>
	<description>Off-idle banter on motorcycling, software development and life in the Pacific Northwest.</description>
	<lastBuildDate>Thu, 17 May 2012 18:00:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Adding and deleting a label on Excel 2007 Worksheet</title>
		<link>http://digitalMoto.net/blog/2011/05/29/adding-and-deleting-a-label-on-excel-2007-worksheet/</link>
		<comments>http://digitalMoto.net/blog/2011/05/29/adding-and-deleting-a-label-on-excel-2007-worksheet/#comments</comments>
		<pubDate>Sun, 29 May 2011 09:22:41 +0000</pubDate>
		<dc:creator>digital</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Excel 2007]]></category>
		<category><![CDATA[VSTO]]></category>

		<guid isPermaLink="false">http://digitalMoto.net/blog/2011/05/29/adding-and-deleting-a-label-on-excel-2007-worksheet/</guid>
		<description><![CDATA[(Another snippet I originally posted to CodeKeep.) Code: // Required libs using Microsoft.Office.Interop.Excel; using Microsoft.Office.Tools.Excel.Extensions; using Tools = Microsoft.Office.Tools; Range range = &#60;get the target range to apply the label over&#62; string controlName = &#60;unique name for the control to avoid collisions on other worksheets&#62; // Add a control Tools.Excel.Controls.Label lbl = worksheet.Controls.AddLabel(targetRange, controlName); // [...]]]></description>
		<wfw:commentRss>http://digitalMoto.net/blog/2011/05/29/adding-and-deleting-a-label-on-excel-2007-worksheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manipulating Excel 2007 cells programmatically</title>
		<link>http://digitalMoto.net/blog/2011/05/29/manipulating-excel-2007-cells-programmatically/</link>
		<comments>http://digitalMoto.net/blog/2011/05/29/manipulating-excel-2007-cells-programmatically/#comments</comments>
		<pubDate>Sun, 29 May 2011 09:15:06 +0000</pubDate>
		<dc:creator>digital</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[CodeKeep]]></category>
		<category><![CDATA[VSTO]]></category>

		<guid isPermaLink="false">http://digitalMoto.net/blog/2011/05/29/manipulating-excel-2007-cells-programmatically/</guid>
		<description><![CDATA[(Another snippet I originally posted to CodeKeep.) Code: &#160; Range rng = &#60;your range&#62;; if (rng.get_End(XlDirection.xlToLeft) != rng.get_End(XlDirection.xlToLRight) { &#160; rng.Value2 = string.Empty; &#160; rng.MergeCells = true; } rng.Value2 = Title; rng.HorizontalAlignment = XlHAlign.xlHAlignCenter; rng.VerticalAlignment = XlVAlign.xlVAlignCenter; rng.Font.Size = 10; rng.Font.Bold = true; rng.Borders.Weight = XlBorderWeight.xlMedium &#160; Notes: The range must be large than a [...]]]></description>
		<wfw:commentRss>http://digitalMoto.net/blog/2011/05/29/manipulating-excel-2007-cells-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Figuring out where you are in an Excel 2007 range.</title>
		<link>http://digitalMoto.net/blog/2009/12/09/figuring-out-where-you-are-in-an-excel-2007-range/</link>
		<comments>http://digitalMoto.net/blog/2009/12/09/figuring-out-where-you-are-in-an-excel-2007-range/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 20:01:46 +0000</pubDate>
		<dc:creator>digital</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[VSTO]]></category>

		<guid isPermaLink="false">http://digitalMoto.net/blog/?p=1062</guid>
		<description><![CDATA[Ever tried to debug a loop inside a listObject.Range? Use get_Address(). It makes the process a lot easier. Code: private object missing = System.Reflection.Missing.Value; Range range = ; Debug.WriteLine("Range: " + range.get_Address(missing, missing, XlReferenceStyle.xlA1, missing, missing)); Usage: range.get_Address(missing, missing, XlReferenceStyle.xlA1, missing, missing) Notes: The output can be parsed if you want to find something like [...]]]></description>
		<wfw:commentRss>http://digitalMoto.net/blog/2009/12/09/figuring-out-where-you-are-in-an-excel-2007-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting an Excel cell background color</title>
		<link>http://digitalMoto.net/blog/2009/12/09/setting-an-excel-cell-background-color/</link>
		<comments>http://digitalMoto.net/blog/2009/12/09/setting-an-excel-cell-background-color/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 19:47:41 +0000</pubDate>
		<dc:creator>digital</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[VSTO]]></category>

		<guid isPermaLink="false">http://digitalMoto.net/blog/?p=1050</guid>
		<description><![CDATA[Description: Set a cell&#8217;s solid background color using a single user-defined color. Code: using System.Drawing; using Microsoft.Office.Interop.Excel; Range range = &#60;get your range&#62;; range.Interior.Color = ColorTranslator.ToOle(Color.PaleGreen);]]></description>
		<wfw:commentRss>http://digitalMoto.net/blog/2009/12/09/setting-an-excel-cell-background-color/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting an Excel 2007 gradient background</title>
		<link>http://digitalMoto.net/blog/2009/12/09/setting-an-excel-2007-gradient-background/</link>
		<comments>http://digitalMoto.net/blog/2009/12/09/setting-an-excel-2007-gradient-background/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 19:46:00 +0000</pubDate>
		<dc:creator>digital</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Formatting]]></category>
		<category><![CDATA[VSTO]]></category>

		<guid isPermaLink="false">http://digitalMoto.net/blog/?p=1048</guid>
		<description><![CDATA[Description: Set a cell&#8217;s background color to a vertical gradient using two user-defined colors. Code: using System.Drawing; using Microsoft.Office.Interop.Excel; Range range = &#60;get range&#62;; ColorStop colorStop; range.Interior.Pattern = XlPattern.xlPatternLinearGradient; LinearGradient gradient = range.Interior.Gradient as LinearGradient; // turn the gradient 90 degrees to vertical. gradient.Degree = 90; // clear out the defailt color settings. gradient.ColorStops.Clear(); // [...]]]></description>
		<wfw:commentRss>http://digitalMoto.net/blog/2009/12/09/setting-an-excel-2007-gradient-background/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

