<?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>The Ken Puls Blog &#187; Office 2010</title>
	<atom:link href="http://www.excelguru.ca/blog/category/office-2010/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.excelguru.ca/blog</link>
	<description>More geeky stuff from the author of www.excelguru.ca...</description>
	<lastBuildDate>Fri, 03 Sep 2010 04:49:29 +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>Enabling Outlining Commands on a Protected Worksheet</title>
		<link>http://www.excelguru.ca/blog/2010/09/01/enabling-outlining-commands-on-a-protected-worksheet/</link>
		<comments>http://www.excelguru.ca/blog/2010/09/01/enabling-outlining-commands-on-a-protected-worksheet/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 07:18:15 +0000</pubDate>
		<dc:creator>Ken Puls</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[I hate it when...]]></category>
		<category><![CDATA[Office 2010]]></category>

		<guid isPermaLink="false">http://www.excelguru.ca/blog/2010/09/01/enabling-outlining-commands-on-a-protected-worksheet/</guid>
		<description><![CDATA[I have a financial model that I set up using a grouping in some key places so that I could collapse sections of the model when I didn&#8217;t want to look at them.  As I was handing off the model to someone else to work with, I wanted to protect the worksheets, but unfortunately [...]]]></description>
			<content:encoded><![CDATA[<p>I have a financial model that I set up using a grouping in some key places so that I could collapse sections of the model when I didn&#8217;t want to look at them.  As I was handing off the model to someone else to work with, I wanted to protect the worksheets, but unfortunately there is no setting in the user interface to allow for expanding/collapsing the outlining tools when the sheet is protected.  In fact, trying to do so gives you the following message:
</p>
<p><img src="http://www.excelguru.ca/blog/wp-content/uploads/2010/09/090210_0718_EnablingOut1.png" alt=""/>
	</p>
<p>I found this a little frustrating, but gave up on it.  I expanded the model completely, protected the sheets and let the users have at &#8216;er.
</p>
<p>Tonight at VBAExpress.com though, I was posting on a thread where the user had included the following in their code:
</p>
<p style="margin-left: 36pt"><span style="color:black"><em>Sh.EnableOutlining = <span style="color:blue">True<br />
</span></em></span></p>
<p><span style="color:black">Wow!  So obviously there IS a way to enable the outlining tools when the worksheet is protected, right?  I ran the macro I had modified for the user and sure enough it worked.  Cool!<br />
</span></p>
<p><span style="color:black">So then I opened up a copy of my model and:<br />
</span></p>
<ul style="margin-left: 54pt">
<li>Ran the following code:  <em>Activesheet.EnableOutlining = True</em>
		</li>
<li>Protected the worksheet
</li>
</ul>
<p>I didn&#8217;t work.  What the hell?
</p>
<p>After a little sleuthing I found out what the issue was.  In order for the EnableOutlining to take effect, you must run the code that protects your worksheet with the userinterfaceonly:=true argument.
</p>
<p>The unfortunate part of this is that userinterfaceonly:=true doesn&#8217;t stick between sessions.  So that nice macro free workbook is now going to have to be saved into an xlsm format with the following code in it:
</p>
<p style="margin-left: 36pt"><em>Private Sub Workbook_Open()<br />
</em></p>
<p style="margin-left: 36pt"><em>    Dim ws As Worksheet<br />
</em></p>
<p style="margin-left: 36pt">
 </p>
<p style="margin-left: 36pt"><em>    Application.ScreenUpdating = False<br />
</em></p>
<p style="margin-left: 36pt"><em>    For Each ws In ThisWorkbook.Worksheets<br />
</em></p>
<p style="margin-left: 36pt"><em>        With ws<br />
</em></p>
<p style="margin-left: 36pt"><em>            .Protect userinterfaceonly:=True<br />
</em></p>
<p style="margin-left: 36pt"><em>            .EnableOutlining = True<br />
</em></p>
<p style="margin-left: 36pt"><em>        End With<br />
</em></p>
<p style="margin-left: 36pt"><em>    Next ws<br />
</em></p>
<p style="margin-left: 36pt"><em>    Application.ScreenUpdating = True<br />
</em></p>
<p style="margin-left: 36pt"><em>End Sub<br />
</em></p>
<p>
 </p>
<p>That shouldn&#8217;t be necessary in my opinion, but whatever. A macro laden file is a small price to pay for the functionality.  Man I love VBA!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.excelguru.ca/blog/2010/09/01/enabling-outlining-commands-on-a-protected-worksheet/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Macro to wrap an existing formula with IFERROR</title>
		<link>http://www.excelguru.ca/blog/2010/08/27/macro-to-wrap-an-existing-formula-with-iferror/</link>
		<comments>http://www.excelguru.ca/blog/2010/08/27/macro-to-wrap-an-existing-formula-with-iferror/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 21:17:34 +0000</pubDate>
		<dc:creator>Ken Puls</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Office 2007]]></category>
		<category><![CDATA[Office 2010]]></category>

		<guid isPermaLink="false">http://www.excelguru.ca/blog/2010/08/27/macro-to-wrap-an-existing-formula-with-iferror/</guid>
		<description><![CDATA[Today I realized that one of my GETPIVOTDATA formulas was returning an error, since there wasn&#8217;t any result in the Pivot Table it was checking for data.  Unfortunately, during the design of the spreadsheet I never wrapped the function with IFERROR to avoid this.

The challenge I had was that I had several different formulas [...]]]></description>
			<content:encoded><![CDATA[<p>Today I realized that one of my GETPIVOTDATA formulas was returning an error, since there wasn&#8217;t any result in the Pivot Table it was checking for data.  Unfortunately, during the design of the spreadsheet I never wrapped the function with IFERROR to avoid this.
</p>
<p>The challenge I had was that I had several different formulas that needed to be wrapped, and didn&#8217;t want to spend the time adjusting each one manually.  So I wrote a little macro to adjust the existing formulas.   Basically what this does it checks each cell in the selection and, if it has a formula in it, wraps it within the following construct:  <strong>=IFERROR(<em>existing formula</em>, 0)</strong>  The point?  Now if an error is returned, it will return 0 instead.
</p>
<p>Public Sub WrapWithIfError()
</p>
<p>    Dim cl As Range
</p>
<p>
 </p>
<p>    For Each cl In Selection
</p>
<p>        If cl.HasFormula Then _
</p>
<p>           cl.Formula = &#8220;=IFERROR(&#8221; &amp; Right(cl.Formula, Len(cl.Formula) &#8211; 1) &amp; &#8220;,0)&#8221;
</p>
<p>    Next cl
</p>
<p>End Sub
</p>
<p>Just a heads up here though… you&#8217;ll need Excel 2007 or later to make use of the IFERROR function.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.excelguru.ca/blog/2010/08/27/macro-to-wrap-an-existing-formula-with-iferror/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Built in Ribbon Customizations in Office 2010</title>
		<link>http://www.excelguru.ca/blog/2010/05/24/built-in-ribbon-customizations-in-office-2010/</link>
		<comments>http://www.excelguru.ca/blog/2010/05/24/built-in-ribbon-customizations-in-office-2010/#comments</comments>
		<pubDate>Tue, 25 May 2010 06:05:07 +0000</pubDate>
		<dc:creator>Ken Puls</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[I hate it when...]]></category>
		<category><![CDATA[Office 2010]]></category>

		<guid isPermaLink="false">http://www.excelguru.ca/blog/2010/05/24/built-in-ribbon-customizations-in-office-2010/</guid>
		<description><![CDATA[I know it&#8217;s been forever since I&#8217;ve blogged here, and I&#8217;m sorry to have to revive this with a rant, but…
I was writing an article up for how to customize the Office Ribbon in Excel 2010, and thought I&#8217;d build a custom Auditing Tab. Using the built in groups is REALLY easy, but there were [...]]]></description>
			<content:encoded><![CDATA[<p>I know it&#8217;s been forever since I&#8217;ve blogged here, and I&#8217;m sorry to have to revive this with a rant, but…</p>
<p>I was writing an article up for how to customize the Office Ribbon in Excel 2010, and thought I&#8217;d build a custom Auditing Tab. Using the built in groups is REALLY easy, but there were commands there I didn&#8217;t need. So I figured that I&#8217;d try to make some custom groups, insert the commands I wanted, and see how it worked. Even better, I know that you can now export the customizations, so I could even share them!</p>
<p>To build a custom Ribbon tab:</p>
<ul>
<li>Right click the Ribbon and choose &#8220;Customize Ribbon&#8221;, or go to File<span style="font-family: Wingdings;">à</span>Excel Options<span style="font-family: Wingdings;">à</span>Customize Ribbon.</li>
<li>Click New Tab</li>
<li>Select the tab and choose Rename</li>
<li>Go to the &#8220;Choose commands from&#8221; dropdown and choose Main Tabs</li>
<li>Find the groups you like, select them and click the Add&gt;&gt; button</li>
</ul>
<p>To add a new group to a tab, first select the tab then:</p>
<ul>
<li>Click New Group</li>
<li>Select the group and choose Rename</li>
<li>Drill down to the commands you like (left window), select them and click the Add&gt;&gt; button</li>
</ul>
<p>Overall it&#8217;s not too complicated really.</p>
<p>So here&#8217;s the setup I did for my Auditing Tab… (I shrunk it so that you only see stuff pertaining to that tab):</p>
<p><img src="http://www.excelguru.ca/blog/wp-content/uploads/2010/05/052510_0605_BuiltinRibb1.png" alt="" /></p>
<p>As you can see, I created custom Formula Auditing, Other Tools and Sort &amp; Filter groups. (I don&#8217;t know why I use the default Sort &amp; Filter as well a custom one, but there you have it. At any rate, it doesn&#8217;t change this… the tab looks like crap!</p>
<p><img src="http://www.excelguru.ca/blog/wp-content/uploads/2010/05/052510_0605_BuiltinRibb2.png" alt="" /></p>
<p>The icons for Trace Precedents, Trace Dependents and Remove Arrows are all large and very blocky looking. Same with the Sort buttons on the custom group. Why is it that they are shown nice and small on the built in group, but not the custom one? And isn&#8217;t it interesting how Microsoft broke the 1 or 3 to a row rule with the Sort group? Makes it very obvious here!</p>
<p>If you want the customization file to try this yourself, click <a href="http://www.excelguru.ca/files/CustomAuditing.exportedUI" target="_self">here</a>.</p>
<p>Personally, I&#8217;m happy enough with the way the built-in groups work, but I think there should have been a bit more control on the sizing of the icons here. It seems that the need for my book (<a href="http://www.excelguru.ca/node/93">RibbonX – Customizing the Office 2007 Ribbon</a>) isn&#8217;t dead yet, but honestly, it should be!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.excelguru.ca/blog/2010/05/24/built-in-ribbon-customizations-in-office-2010/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Excel 2010 Finally Fixes SpecialCells 8192 Limit</title>
		<link>http://www.excelguru.ca/blog/2009/07/23/excel-2010-finally-fixes-specialcells-8192-limit/</link>
		<comments>http://www.excelguru.ca/blog/2009/07/23/excel-2010-finally-fixes-specialcells-8192-limit/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 05:24:22 +0000</pubDate>
		<dc:creator>Ken Puls</dc:creator>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Office 2010]]></category>

		<guid isPermaLink="false">http://www.excelguru.ca/blog/2009/07/23/excel-2010-finally-fixes-specialcells-8192-limit/</guid>
		<description><![CDATA[If you filter data out of large data sets, you may have run into an issue where you can hit 8192 non-contiguous ranges, which Excel couldn&#8217;t handle.  While this issue has been in Excel for many versions, I can honestly say that I haven&#8217;t run into it in years, as I&#8217;ve always sorted my [...]]]></description>
			<content:encoded><![CDATA[<p>If you filter data out of large data sets, you may have run into an issue where you can hit 8192 non-contiguous ranges, which Excel couldn&#8217;t handle.  While this issue has been in Excel for many versions, I can honestly say that I haven&#8217;t run into it in years, as I&#8217;ve always sorted my data first, to avoid this issue.
</p>
<p>To replicate the issue, try this in any version of Excel prior to 2010:
</p>
<p>Enter the following data in a blank sheet:
</p>
<ul>
<li>A1:    Row
</li>
<li>B1:    Index
</li>
<li>A2:    =ROW(B2)
</li>
<li>B2:    =IF(A1=1,2,1)
</li>
</ul>
<p>Now copy row 2 down about 20,000 rows…
</p>
<p>Next, select row 1 and Filter your data on Column B to only show 1&#8217;s
</p>
<p>Now, select from cell A3 to the end of your data in column B and try to copy it…  You&#8217;ll get a message like this one…
</p>
<p><img src="http://www.excelguru.ca/blog/wp-content/uploads/2009/07/072409_0524_Excel2010Fi1.png" alt=""/>
	</p>
<p>Well guess what… that&#8217;s no longer necessary!  In Excel 2010, the Excel team has removed this limit.  And while I haven&#8217;t tested this, the new limit is apparently imposed by the memory in your computer, not a hard coded limit.
</p>
<p>It&#8217;s great to see that such a long standing bug has finally been resolved.  <img src='http://www.excelguru.ca/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.excelguru.ca/blog/2009/07/23/excel-2010-finally-fixes-specialcells-8192-limit/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
