<?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>Contextures Blog</title>
	<atom:link href="http://blog.contextures.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.contextures.com</link>
	<description>Excel Tips and Tutorials</description>
	<lastBuildDate>Thu, 17 May 2012 04:01:00 +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>Your Excel Spreadsheet Smells</title>
		<link>http://blog.contextures.com/archives/2012/05/17/your-excel-spreadsheet-smells/</link>
		<comments>http://blog.contextures.com/archives/2012/05/17/your-excel-spreadsheet-smells/#comments</comments>
		<pubDate>Thu, 17 May 2012 04:01:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Excel VBA]]></category>

		<guid isPermaLink="false">http://blog.contextures.com/archives/2012/05/17/your-excel-spreadsheet-smells/</guid>
		<description><![CDATA[<p>Do your spreadsheets smell? This week, a tweet from Felienne Hermans caught my eye.</p> &#34;Our @icse2012 paper on spreadsheet smells already has a citation before publication&#34; <p>Spreadsheet smells? I've seen some stinky spreadsheets, but have never read a conference paper on spreadsheet smells. It sounded intriguing, so I followed the link to Felienne's paper – Detecting and Visualizing Inter-worksheet Smells in Spreadsheets.</p> Code Smells <p>The starting point for the paper is the code smell metaphor introduced in Martin Fowler's book, Refactoring: Improving the Design of Existing Code. I don't have that book, so I visited Wikipedia, to see what it knew about code smells. </p> <p>Fortunately, Wikipedia had a helpful summary of common code smells, and I've listed a few of them below. Can you see how these code smells relate to Excel, whether you're building worksheets, or creating Excel VBA code?</p> Duplicated code: identical or very similar code exists <p>Continue reading <a href="http://blog.contextures.com/archives/2012/05/17/your-excel-spreadsheet-smells/">Your Excel Spreadsheet Smells</a></p><p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/17/your-excel-spreadsheet-smells/">Your Excel Spreadsheet Smells</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.com/gp/product/0201485672/ref=as_li_ss_il?ie=UTF8&amp;tag=contextures-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0201485672"><img style="margin: 0px 0px 10px 10px; display: inline" align="right" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&amp;Format=_SL160_&amp;ASIN=0201485672&amp;MarketPlace=US&amp;ID=AsinImage&amp;WS=1&amp;tag=contextures-20&amp;ServiceVersion=20070822" /></a><img style="border-bottom-style: none !important; border-right-style: none !important; margin: 0px; border-top-style: none !important; border-left-style: none !important" border="0" alt="" src="http://www.assoc-amazon.com/e/ir?t=contextures-20&amp;l=as2&amp;o=1&amp;a=0201485672" width="1" height="1" />Do your spreadsheets smell? This week, a tweet from <a title="Felienne Hermans" href="https://twitter.com/#!/Felienne">Felienne Hermans</a> caught my eye.</p>
<ul>
<li>&quot;Our @icse2012 paper on spreadsheet smells already has a citation before publication&quot; </li>
</ul>
<p>Spreadsheet smells? I've seen some stinky spreadsheets, but have never read a conference paper on spreadsheet smells. It sounded intriguing, so I followed the link to Felienne's paper – <a title="Detecting and Visualizing Inter-worksheet Smells in Spreadsheets" href="http://swerl.tudelft.nl/twiki/pub/FelienneHermans/Publications/paper_camera_ready.pdf">Detecting and Visualizing Inter-worksheet Smells in Spreadsheets</a>.</p>
<h3>Code Smells</h3>
<p>The starting point for the paper is the code smell metaphor introduced in Martin Fowler's book, <a title="Refactoring: Improving the Design of Existing Code" href="http://www.amazon.com/gp/product/0201485672/ref=as_li_ss_tl?ie=UTF8&amp;tag=contextures-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0201485672">Refactoring: Improving the Design of Existing Code</a>. I don't have that book, so I visited Wikipedia, to see what it knew about code smells. </p>
<p>Fortunately, Wikipedia had a helpful summary of <a title="common code smells" href="http://en.wikipedia.org/wiki/Code_smell">common code smells</a>, and I've listed a few of them below. Can you see how these code smells relate to Excel, whether you're building worksheets, or creating Excel VBA code?</p>
<ul>
<li>Duplicated code: identical or very similar code exists in more than one location. </li>
<li>Long method: a method, function, or procedure that has grown too large. </li>
<li>Contrived complexity: forced usage of overly complicated design patterns where simpler design would suffice. </li>
<li>Excessive use of literals: these should be coded as named constants, to improve readability and to avoid programming errors. </li>
</ul>
<p>Hmmm…replace &quot;code&quot; with formulas, and you've probably seen (or created) workbooks that had those code smells. I've been guilty of creating some of those smells, and have seen workbooks start small, and slowly grow out of control. </p>
<h3>Spreadsheet Smells</h3>
<p>Among the most frequent spreadsheet smells that Felienne and her colleagues found were:</p>
<ul>
<li>Inappropriate Intimacy – a worksheet that is overly related to a second worksheet. </li>
<li>Feature Envy – if there is a formula that is more interested in cells from another worksheet, it would be better to move the formula to that worksheet </li>
<li>Shotgun Surgery – a formula F that is referred to by many different formulas in different worksheets…chances are high that many of the formulas that refer to F will have to be changed if F is changed. </li>
</ul>
<h3>Read More About It</h3>
<p>If you'd like to learn more about spreadsheet code smells, take a look at the paper written by Felienne and her colleagues, to see how their research was done, and what their conclusions were. </p>
<p>I'll be reading it again this weekend, to see what else I can absorb from it. Have you read anything similar, or heard about code smells before?</p>
<p>_______________    </p>
<p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/17/your-excel-spreadsheet-smells/">Your Excel Spreadsheet Smells</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.contextures.com/archives/2012/05/17/your-excel-spreadsheet-smells/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excel Pivot Table Selection Quick Tip</title>
		<link>http://blog.contextures.com/archives/2012/05/15/excel-pivot-table-selection-quick-tip/</link>
		<comments>http://blog.contextures.com/archives/2012/05/15/excel-pivot-table-selection-quick-tip/#comments</comments>
		<pubDate>Tue, 15 May 2012 04:01:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Pivot Table]]></category>

		<guid isPermaLink="false">http://blog.contextures.com/archives/2012/05/15/excel-pivot-table-selection-quick-tip/</guid>
		<description><![CDATA[<p>To format a pivot table, you can select a specific section, such as one of the fields, or a grand total. When you point to a field heading, a black arrow will appear, if the Enable Selection setting is turned on.</p> <p>In the screen shot below, you can see the black arrow at the top of the Product field. Click in that spot, and all the Product item labels are selected.</p> <p> </p> <p>Click in that spot again, and the Product heading is selected, instead of the item labels.</p> <p> </p> Pivot Table Field Setting Quick Tip <p>Instead of a single click on a heading cell, you can point to an outer field heading and double-click when the black arrow appears. In the screen shot below, the black arrow is on the Bran product heading cell.</p> <p>Note: This trick won't work on an inner field, like Region, which has no <p>Continue reading <a href="http://blog.contextures.com/archives/2012/05/15/excel-pivot-table-selection-quick-tip/">Excel Pivot Table Selection Quick Tip</a></p><p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/15/excel-pivot-table-selection-quick-tip/">Excel Pivot Table Selection Quick Tip</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></description>
			<content:encoded><![CDATA[<p>To format a pivot table, you can <strong><a title="select a specific section" href="http://www.contextures.com/excelpivottableselect.html">select a specific section</a></strong>, such as one of the fields, or a grand total. When you point to a field heading, a black arrow will appear, if the Enable Selection setting is turned on.</p>
<p>In the screen shot below, you can see the black arrow at the top of the Product field. Click in that spot, and all the Product item labels are selected.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="pivotselect01" border="0" alt="pivotselect01" src="http://blog.contextures.com/wp-content/uploads/2012/05/pivotselect01.png" width="319" height="228" /> </p>
<p>Click in that spot again, and the Product heading is selected, instead of the item labels.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="pivotselect02" border="0" alt="pivotselect02" src="http://blog.contextures.com/wp-content/uploads/2012/05/pivotselect02.jpg" width="317" height="178" /> </p>
<h3>Pivot Table Field Setting Quick Tip</h3>
<p>Instead of a single click on a heading cell, you can point to an outer field heading and double-click when the black arrow appears. In the screen shot below, the black arrow is on the Bran product heading cell.</p>
<p>Note: This trick won't work on an inner field, like Region, which has no other fields under it.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="pivotselect03" border="0" alt="pivotselect03" src="http://blog.contextures.com/wp-content/uploads/2012/05/pivotselect03.jpg" width="258" height="183" /> </p>
<p>Double-click on the outer field heading, and the Field Settings dialog box opens. In there, you can change the layout and other settings, and add or remove subtotals.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="pivotselect04" border="0" alt="pivotselect04" src="http://blog.contextures.com/wp-content/uploads/2012/05/pivotselect04.png" width="392" height="302" /> </p>
<p>Another way to open the Field Settings dialog box is to right-click on an item, and click Field Settings in the popup menu. This works for both inner and outer fields in the pivot table.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="pivotselect05" border="0" alt="pivotselect05" src="http://blog.contextures.com/wp-content/uploads/2012/05/pivotselect05.png" width="292" height="215" /> </p>
<p>I find the double-click shortcut to be quicker and easier – as long as you remember to point somewhere that the black arrow appears.</p>
<h3>Watch the Pivot Table Selection Video</h3>
<p>To see the steps for selecting section of an Excel Pivot Table, you can watch this short video tutorial.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:93c16b4c-b264-4f07-b9d3-a0100989b4a6" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/RoHz-HNhDCw&amp;hl=en"></param><embed src="http://www.youtube.com/v/RoHz-HNhDCw&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
</p>
</p>
<p>&#160;</p>
<p>_________________</p>
<p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/15/excel-pivot-table-selection-quick-tip/">Excel Pivot Table Selection Quick Tip</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.contextures.com/archives/2012/05/15/excel-pivot-table-selection-quick-tip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Show Data From Hidden Rows in Excel Chart</title>
		<link>http://blog.contextures.com/archives/2012/05/10/show-data-from-hidden-rows-in-excel-chart/</link>
		<comments>http://blog.contextures.com/archives/2012/05/10/show-data-from-hidden-rows-in-excel-chart/#comments</comments>
		<pubDate>Thu, 10 May 2012 04:02:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Excel charts]]></category>

		<guid isPermaLink="false">http://blog.contextures.com/archives/2012/05/10/show-data-from-hidden-rows-in-excel-chart/</guid>
		<description><![CDATA[<p>You can add a chart in Excel, based on worksheet data, like this sales chart example.</p> <p></p> <p>But, if you filter the data, and rows are hidden, that data also disappears from the chart. You might like that feature, and not mind that the chart changes. In the example shown below, only the West region's data is visible on the sheet and in the chart.</p> <p></p> <p>However, there are some situations when you want the chart to show the data, even if the data is hidden. In the next example, columns A:C are hidden, so that they don't distract from the chart. Oops! Now there's nothing in the chart. That's not the effect that you were going for.</p> <p>&#160;&#160;&#160;&#160; </p> Change a Chart Setting to Show Hidden Data <p>If you want your chart to show all the data, even if some of the source data is hidden, you can change <p>Continue reading <a href="http://blog.contextures.com/archives/2012/05/10/show-data-from-hidden-rows-in-excel-chart/">Show Data From Hidden Rows in Excel Chart</a></p><p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/10/show-data-from-hidden-rows-in-excel-chart/">Show Data From Hidden Rows in Excel Chart</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></description>
			<content:encoded><![CDATA[<p>You can add a chart in Excel, based on worksheet data, like this sales chart example.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="charthiddendata01" border="0" alt="charthiddendata01" src="http://blog.contextures.com/wp-content/uploads/2012/05/charthiddendata01.png" width="497" height="308" /></p>
<p>But, if you filter the data, and rows are hidden, that data also disappears from the chart. You might like that feature, and not mind that the chart changes. In the example shown below, only the West region's data is visible on the sheet and in the chart.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="charthiddendata02" border="0" alt="charthiddendata02" src="http://blog.contextures.com/wp-content/uploads/2012/05/charthiddendata02.png" width="491" height="297" /></p>
<p>However, there are some situations when you want the chart to show the data, even if the data is hidden. In the next example, columns A:C are hidden, so that they don't distract from the chart. Oops! Now there's nothing in the chart. That's not the effect that you were going for.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="charthiddendata04" border="0" alt="charthiddendata04" src="http://blog.contextures.com/wp-content/uploads/2012/05/charthiddendata04.png" width="437" height="300" />&#160;&#160;&#160;&#160; </p>
<h3>Change a Chart Setting to Show Hidden Data </h3>
<p>If you want your chart to show all the data, even if some of the source data is hidden, you can change one of the chart settings. The Excel 2010 instructions are shown below, and you can click here for instructions to <a title="show hidden data in Excel 2003 charts" href="http://www.contextures.com/xlfaqApp.html#hiderows">show hidden data in Excel 2003 charts</a>. </p>
<h5>To change the setting in Excel 2010:</h5>
<ul>
<li>Click on the chart to select it, and on the Excel Ribbon, under Chart Tools, click the Design tab </li>
<li>Click the Select Data command</li>
</ul>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="charthiddendata05" border="0" alt="charthiddendata05" src="http://blog.contextures.com/wp-content/uploads/2012/05/charthiddendata05.png" width="361" height="147" /></p>
<ul>
<li>Click the Hidden and Empty Cells button </li>
</ul>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="charthiddendata06" border="0" alt="charthiddendata06" src="http://blog.contextures.com/wp-content/uploads/2012/05/charthiddendata06.png" width="211" height="88" /> </p>
<ul>
<li>Add a check mark to 'Show data in hidden rows and columns' </li>
</ul>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="charthiddendata07" border="0" alt="charthiddendata07" src="http://blog.contextures.com/wp-content/uploads/2012/05/charthiddendata07.png" width="292" height="145" /></p>
<ul>
<li>Click OK, twice, to close the dialog boxes </li>
</ul>
<p>Now, you can hide rows or columns, and the chart data will remain visible.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="charthiddendata08" border="0" alt="charthiddendata08" src="http://blog.contextures.com/wp-content/uploads/2012/05/charthiddendata08.png" width="414" height="296" /></p>
<h3>Watch the Show Hidden Data in Chart Video</h3>
<p>To see the steps for changing the chart settings in Excel 2010, you can watch this short video tutorial.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:504361d3-30cf-4364-9a1b-c2ace392a813" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/GxrXvbEP_Jg&amp;hl=en"></param><embed src="http://www.youtube.com/v/GxrXvbEP_Jg&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
<p>__________________</p>
<p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/10/show-data-from-hidden-rows-in-excel-chart/">Show Data From Hidden Rows in Excel Chart</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.contextures.com/archives/2012/05/10/show-data-from-hidden-rows-in-excel-chart/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add New ComboBox Items in Excel UserForm</title>
		<link>http://blog.contextures.com/archives/2012/05/08/add-new-combobox-items-in-excel-userform/</link>
		<comments>http://blog.contextures.com/archives/2012/05/08/add-new-combobox-items-in-excel-userform/#comments</comments>
		<pubDate>Tue, 08 May 2012 04:02:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Excel VBA]]></category>

		<guid isPermaLink="false">http://blog.contextures.com/archives/2012/05/08/add-new-combobox-items-in-excel-userform/</guid>
		<description><![CDATA[<p>If you want to enter data in an Excel worksheet, while keeping the data sheet hidden, you can create an Excel UserForm.</p> <p>I've updated my sample file, so you can now add new parts, while entering data. It's almost working the way it should, but I'm stuck on one step, so if you have a solution, please let me know!</p> <p>[Update: Problem solved with a workaround -- see below.]</p> Select a Part from the ComboBox Drop Down List <p>In the sample file, you can click the Add Parts Information button, to open the UserForm.</p> <p>Then, select a Part ID from the combo box drop down list.</p> <p></p> The Parts List <p>On another sheet in the workbook, there are two lists – Location, and Parts. These are dynamic named ranges, and will expand automatically, as new items are added to the lists.</p> <p></p> Add a New Part to the List <p>In <p>Continue reading <a href="http://blog.contextures.com/archives/2012/05/08/add-new-combobox-items-in-excel-userform/">Add New ComboBox Items in Excel UserForm</a></p><p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/08/add-new-combobox-items-in-excel-userform/">Add New ComboBox Items in Excel UserForm</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></description>
			<content:encoded><![CDATA[<p>If you want to enter data in an Excel worksheet, while keeping the data sheet hidden, you can <a title="create an Excel UserForm" href="http://www.contextures.com/xlUserForm02.html">create an Excel UserForm</a>.</p>
<p>I've updated my sample file, so you can now add new parts, while entering data. It's almost working the way it should, but I'm stuck on one step, so if you have a solution, please let me know!</p>
<p>[Update: Problem solved with a workaround -- see below.]</p>
<h3>Select a Part from the ComboBox Drop Down List</h3>
<p>In the sample file, you can click the Add Parts Information button, to open the UserForm.</p>
<p>Then, select a Part ID from the combo box drop down list.</p>
<p><img style="display: inline; border-width: 0px;" title="userformcomboadd02" src="http://blog.contextures.com/wp-content/uploads/2012/05/userformcomboadd02.png" alt="userformcomboadd02" width="374" height="279" border="0" /></p>
<h3>The Parts List</h3>
<p>On another sheet in the workbook, there are two lists – Location, and Parts. These are <a title="dynamic named ranges" href="http://www.contextures.com/xlNames01.html">dynamic named ranges</a>, and will expand automatically, as new items are added to the lists.</p>
<p><img style="display: inline; border-width: 0px;" title="userformcomboadd01" src="http://blog.contextures.com/wp-content/uploads/2012/05/userformcomboadd01.png" alt="userformcomboadd01" width="315" height="255" border="0" /></p>
<h3>Add a New Part to the List</h3>
<p>In the latest version of the sample file, you can add new parts to the list, while you are entering data in the UserForm.</p>
<ol>
<li>If the Part ID that you want is not in the list, type it into the Part ID combo box.</li>
<li>When you press the Tab key, to move to the next control, a Part Description text box will appear.</li>
<li>Enter the description, then fill in the rest of the data.</li>
<li>Click the Add This Part button</li>
</ol>
<p><img style="display: inline; border-width: 0px;" title="userformcomboadd05" src="http://blog.contextures.com/wp-content/uploads/2012/05/userformcomboadd05.png" alt="userformcomboadd05" width="361" height="334" border="0" /></p>
<h3>Select the New Part</h3>
<p>After you click the Add This Part button, the new item is added to the Parts List, and the Parts list is sorted A-Z.</p>
<p><img style="display: inline; border-width: 0px;" title="userformcombo06" src="http://blog.contextures.com/wp-content/uploads/2012/05/userformcombo06.png" alt="userformcombo06" width="340" height="256" border="0" /></p>
<p>The new item now appears in the Part ID combo box drop down list.</p>
<p><img style="display: inline; border-width: 0px;" title="userformcomboadd04" src="http://blog.contextures.com/wp-content/uploads/2012/05/userformcomboadd04.png" alt="userformcomboadd04" width="360" height="226" border="0" /></p>
<h3>SetFocus Problem</h3>
<p>My goal was to have the Part Description activated, as soon as it was made visible. However, the VBA code wouldn't cooperate, so I've commented out this line:</p>
<pre>Me.txtPartDesc.SetFocus</pre>
<p>If you have a solution for getting that line to work, please share it in the comments, or send me an email. I'd appreciate it!</p>
<p>Update: Thanks to JeanMarc, Jon and Dave, the tab order is working now.You can see their suggestions in the comments below.</p>
<ul>
<li>Instead of being hidden, the Parts Description textbox moves to the far right, so it's not in the visible part of the form, then moves back when needed.</li>
<li>To keep the tab key from stopping on the "off form" textbox, its position is checked. If it's at the far right, go to the next control.</li>
</ul>
<h3>Download the Sample File</h3>
<p>To see the sample file, and check the Excel VBA code, you can download the file from my Contextures website. On the Sample Excel Files page, in the UserForm section, look for <strong><a title="UF0017 - Parts Database with Updateable Comboboxes" href="http://www.contextures.com/excelfiles.html#UF0017">UF0017 - Parts Database with Updateable Comboboxes</a></strong></p>
<p>The file is available in Excel 2007/2010 or Excel 2003 format, and zipped. It contains macros, so enable those if you want to test the UserForm.</p>
<p>_____________________</p>
<p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/08/add-new-combobox-items-in-excel-userform/">Add New ComboBox Items in Excel UserForm</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.contextures.com/archives/2012/05/08/add-new-combobox-items-in-excel-userform/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Excel Data Validation Combo box Codes</title>
		<link>http://blog.contextures.com/archives/2012/05/03/excel-data-validation-combo-box-codes/</link>
		<comments>http://blog.contextures.com/archives/2012/05/03/excel-data-validation-combo-box-codes/#comments</comments>
		<pubDate>Thu, 03 May 2012 04:01:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Excel Data Validation]]></category>
		<category><![CDATA[Excel VBA]]></category>

		<guid isPermaLink="false">http://blog.contextures.com/archives/2012/05/03/excel-data-validation-combo-box-codes/</guid>
		<description><![CDATA[<p>Instead of selecting a product code in an Excel drop down list, it's usually easier to select a product name instead. However, your pricing calculations might use the product code, instead of the product name, so you need that information.</p> <p>With a bit of programming in Excel, you can show a description in a combo box, but enter the matching code for the selected item into the cell. You've seen other versions of my data validation combo box code:</p> Double-click on data validation cell to open combo box Click on data validation cell to open combo box Use named lists with data validation combo box <p>Keep reading, to see how the new combo box codes example works.</p> Select From a Combo Box <p>I've uploaded a new sample file on the Contextures website, which lets you select a month name, or weekday name, from an Excel combo box.</p> <p></p> <p>When you <p>Continue reading <a href="http://blog.contextures.com/archives/2012/05/03/excel-data-validation-combo-box-codes/">Excel Data Validation Combo box Codes</a></p><p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/03/excel-data-validation-combo-box-codes/">Excel Data Validation Combo box Codes</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></description>
			<content:encoded><![CDATA[<p>Instead of selecting a product code in an <a title="Excel drop down list" href="http://www.contextures.com/xlDataVal01.html">Excel drop down list</a>, it's usually easier to select a product name instead. However, your pricing calculations might use the product code, instead of the product name, so you need that information.</p>
<p>With a bit of programming in Excel, you can show a description in a combo box, but enter the matching code for the selected item into the cell. You've seen other versions of my data validation combo box code:</p>
<ul>
<li><a title="Double-click on data validation cell to open combo box" href="http://www.contextures.com/xlDataVal10.html">Double-click on data validation cell to open combo box</a></li>
<li><a title="Click on data validation cell to open combo box" href="http://www.contextures.com/xlDataVal14.html">Click on data validation cell to open combo box</a></li>
<li><a title="Use named lists with data validation combo box" href="http://www.contextures.com/xlDataVal11.html">Use named lists with data validation combo box</a></li>
</ul>
<p>Keep reading, to see how the new combo box codes example works.</p>
<h3>Select From a Combo Box</h3>
<p>I've uploaded a new sample file on the Contextures website, which lets you select a month name, or weekday name, from an Excel combo box.</p>
<p><img style="display: inline; border: 0px;" title="datavalcomboboxcodes01" src="http://blog.contextures.com/wp-content/uploads/2012/05/datavalcomboboxcodes01.png" alt="datavalcomboboxcodes01" width="286" height="156" border="0" /></p>
<p>When you leave the combo box, the month number, or weekday code is automatically entered in the cell, instead of the full description.</p>
<p><img style="display: inline; border: 0px;" title="datavalcomboboxcodes02" src="http://blog.contextures.com/wp-content/uploads/2012/05/datavalcomboboxcodes02.png" alt="datavalcomboboxcodes02" width="307" height="128" border="0" /></p>
<h3>The Named Ranges</h3>
<p>In the data validation cells, lists are allowed, and they refer to the named ranges – DayList and MonthList – where the short codes are stored.</p>
<p><img style="display: inline; border: 0px;" title="datavalcomboboxcodes03" src="http://blog.contextures.com/wp-content/uploads/2012/05/datavalcomboboxcodes03.png" alt="datavalcomboboxcodes03" width="350" height="282" border="0" /></p>
<p>Another range is created for each list, to include the description column, and these names end with "Codes" – DayListCodes and MonthListCodes.</p>
<p>These "Codes" ranges are used to fill the combo box, which is formatted with 2 columns. The first column has a width of zero, so the codes aren't visible.</p>
<p><img style="display: inline; border: 0px;" title="datavalcomboboxcodes04" src="http://blog.contextures.com/wp-content/uploads/2012/05/datavalcomboboxcodes04.png" alt="datavalcomboboxcodes04" width="311" height="185" border="0" /></p>
<h3>Download the Sample File</h3>
<p>To test the combo box codes example, and see how it works, you can download the sample file from the Contextures website. In the Data Validation section look for <a title="DV0057 – Data Validation Combobox Codes" href="http://www.contextures.com/excelfiles.html#DV0057">DV0057 – Data Validation Combobox Codes</a>. The file is in Excel 2007/2010 format, and contains macros.</p>
<p>______________________</p>
<p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/03/excel-data-validation-combo-box-codes/">Excel Data Validation Combo box Codes</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.contextures.com/archives/2012/05/03/excel-data-validation-combo-box-codes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Change Font in Excel Column Headers</title>
		<link>http://blog.contextures.com/archives/2012/05/01/change-font-in-excel-column-headers/</link>
		<comments>http://blog.contextures.com/archives/2012/05/01/change-font-in-excel-column-headers/#comments</comments>
		<pubDate>Tue, 01 May 2012 04:01:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Excel Formatting]]></category>
		<category><![CDATA[Excel tips]]></category>

		<guid isPermaLink="false">http://blog.contextures.com/archives/2012/05/01/change-font-in-excel-column-headers/</guid>
		<description><![CDATA[<p>Do you ever wish that the letters in the Excel column headers were bigger? Did someone send you an Excel file, with a different font in the headers, and you can't figure out how they did it?</p> <p>Here's how you can change the settings in a workbook, so the column and row headers look different.</p> <p>[Note: If you're trying to fix column headers that appear as numbers, click here: Column Headings Show Numbers]</p> The Default Settings <p>When you create a new file in Excel, the row and column headers are displayed in your workbook Normal Style's font. The Normal Style's font is also used in the worksheet cells, unless you select a different format in some or all of the cells.</p> <p>In my workbooks, the default font is Arial Narrow 11. In the screen shot below, you can see that the column and row headers are in that font, and <p>Continue reading <a href="http://blog.contextures.com/archives/2012/05/01/change-font-in-excel-column-headers/">Change Font in Excel Column Headers</a></p><p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/01/change-font-in-excel-column-headers/">Change Font in Excel Column Headers</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></description>
			<content:encoded><![CDATA[<p>Do you ever wish that the letters in the Excel column headers were bigger? Did someone send you an Excel file, with a different font in the headers, and you can't figure out how they did it?</p>
<p>Here's how you can change the settings in a workbook, so the column and row headers look different.</p>
<p>[Note: If you're trying to fix column headers that appear as numbers, click here: <a title="Excel Column Headings Show Numbers" href="http://blog.contextures.com/archives/2009/04/13/excel-column-headings-show-numbers/">Column Headings Show Numbers</a>]</p>
<h3>The Default Settings</h3>
<p>When you create a new file in Excel, the row and column headers are displayed in your workbook Normal Style's font. The Normal Style's font is also used in the worksheet cells, unless you select a different format in some or all of the cells.</p>
<p>In my workbooks, the default font is Arial Narrow 11. In the screen shot below, you can see that the column and row headers are in that font, and so is the data in cells A1 and B1.</p>
<p><img style="display: inline; border: 0px;" title="headerfont01" src="http://blog.contextures.com/wp-content/uploads/2012/04/headerfont01.png" alt="headerfont01" width="298" height="99" border="0" /></p>
<h3>Change the Normal Style Settings</h3>
<p>If you find the default font size too small, or if you'd prefer a different type of font, you can change the Normal Style settings.</p>
<h6>To change the Normal font in Excel 2010:</h6>
<ol>
<li>On the Excel Ribbon, click the Home tab</li>
<li>In the Styles group, click Cell Styles, to open the Cell Styles palette.</li>
<li>Right-click on the Normal style, and click Modify</li>
<ul>
<li><img style="display: inline; border: 0px;" title="headerfont02" src="http://blog.contextures.com/wp-content/uploads/2012/04/headerfont02.png" alt="headerfont02" width="285" height="170" border="0" /></li>
</ul>
<li>Click the Format button, and select the font and font size you want for the Normal style.</li>
<ul>
<li><img style="display: inline; border: 0px;" title="headerfont03" src="http://blog.contextures.com/wp-content/uploads/2012/04/headerfont03.png" alt="headerfont03" width="448" height="261" border="0" /></li>
</ul>
<li>Click OK, twice, to close the dialog boxes.</li>
</ol>
<h3>Crazy Column Headers</h3>
<p>It's too late for this year, but you could use this technique to fool your colleagues on April 1st next year. You know that guy who thinks he knows everything about Excel? See if he can figure this out.</p>
<p>Change the Normal font to a graphic font, such as Wingdings, and the row and column headers will turn into pictures, like the happy/sad faces shown below. Then, send the file to your co-worker, and ask him to check the numbers in the Sad Face column. Ha!</p>
<p>Remember to format the cells in a non-graphic font, such as Arial, after you change the Normal style, so the data is readable.</p>
<p><img style="display: inline; border: 0px;" title="headerfont06" src="http://blog.contextures.com/wp-content/uploads/2012/04/headerfont06.png" alt="headerfont06" width="361" height="152" border="0" /></p>
<p>You'll find more Excel tips and solutions in the <a title="Excel FAQ" href="http://www.contextures.com/xlfaqApp.html">Excel Frequently Asked Questions</a> (FAQ) section of the Contextures website.</p>
<p>___________</p>
<p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/05/01/change-font-in-excel-column-headers/">Change Font in Excel Column Headers</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.contextures.com/archives/2012/05/01/change-font-in-excel-column-headers/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>When Good Excel Macros Go Bad</title>
		<link>http://blog.contextures.com/archives/2012/04/26/when-good-excel-macros-go-bad/</link>
		<comments>http://blog.contextures.com/archives/2012/04/26/when-good-excel-macros-go-bad/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 04:02:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Excel VBA]]></category>

		<guid isPermaLink="false">http://blog.contextures.com/archives/2012/04/26/when-good-excel-macros-go-bad/</guid>
		<description><![CDATA[<p>Why do good Excel macros suddenly go bad? Does that ever happen to you? Here's my latest adventure, and maybe it will help you prevent (or solve) a similar problem.</p> Unprotect Sheets With a Macro <p>When making changes to client files, I use macros to quickly and easily protect or unprotect all the sheets in an Excel file, like the examples shown below.</p> This macro protects all the worksheets in the active workbook, with no password. Sub ProtectAllSheetsNoPwd() Dim ws As Worksheet On Error Resume Next For Each ws In ActiveWorkbook.Worksheets ws.Protect DrawingObjects:=True, _ Contents:=True, Password:="" Next ws End Sub And this macro unprotects all the worksheets, with no password. Sub UnProtectAllSheetsNoPwd() Dim ws As Worksheet On Error Resume Next For Each ws In ActiveWorkbook.Worksheets ws.Unprotect Next ws End Sub The Protect Macro Fails <p>However, even a simple macro can run into problems, as I'm sure you've already discovered with <p>Continue reading <a href="http://blog.contextures.com/archives/2012/04/26/when-good-excel-macros-go-bad/">When Good Excel Macros Go Bad</a></p><p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/04/26/when-good-excel-macros-go-bad/">When Good Excel Macros Go Bad</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 0px 10px 10px; display: inline; border-width: 0px;" title="iconmacros" src="http://blog.contextures.com/wp-content/uploads/2012/04/iconmacros.png" alt="iconmacros" width="51" height="60" align="right" border="0" />Why do good Excel macros suddenly go bad? Does that ever happen to you? Here's my latest adventure, and maybe it will help you prevent (or solve) a similar problem.</p>
<h3>Unprotect Sheets With a Macro</h3>
<p>When making changes to client files, I use macros to quickly and easily protect or <a title="unprotect all the sheets in an Excel file" href="http://blog.contextures.com/archives/2011/08/24/unprotect-all-excel-sheets/">unprotect all the sheets in an Excel file</a>, like the examples shown below.</p>
<ul>
<li>This macro protects all the worksheets in the active workbook, with no password.</li>
</ul>
<pre>Sub ProtectAllSheetsNoPwd()
Dim ws As Worksheet
On Error Resume Next

For Each ws In ActiveWorkbook.Worksheets
  ws.Protect DrawingObjects:=True, _
    Contents:=True, Password:=""
Next ws

End Sub</pre>
<ul>
<li>And this macro unprotects all the worksheets, with no password.</li>
</ul>
<pre>Sub UnProtectAllSheetsNoPwd()
Dim ws As Worksheet
On Error Resume Next

For Each ws In ActiveWorkbook.Worksheets
  ws.Unprotect
Next ws

End Sub</pre>
<h3>The Protect Macro Fails</h3>
<p>However, even a simple macro can run into problems, as I'm sure you've already discovered with your own macros. It worked yesterday, but the macro won't run correctly today, in the same file. And you're sure that nothing was changed in the file – so what's the problem?</p>
<p>That's what happened to me recently, while trying to unprotect a file, so I could make some changes. The macro ran, but the sheet's weren't unprotected.</p>
<p>I commented out the macro's error handling, to try and solve the problem, and this run-time error 1004 popped up:<br />
Method 'Unprotect' of object '_Worksheet' failed.</p>
<p><img style="display: inline; border-width: 0px;" title="protecterror02" src="http://blog.contextures.com/wp-content/uploads/2012/04/protecterror02.png" alt="protecterror02" width="372" height="208" border="0" /></p>
<h3>Prevent the Macro Problem</h3>
<p>After a bit of head scratching, I realized what the problem was – I had grouped some of the sheets, because they all needed a formatting change. Oops! Because the sheets were grouped, they couldn't be unprotected.</p>
<p>I added a line of code to the macro, to ungroup the sheets, if necessary, and the problem is solved. You could do something fancier, like identifying the active sheet, and selecting it, instead of the first sheet.</p>
<pre>Sub ProtectAllSheetsNoPwd()
Dim ws As Worksheet
On Error Resume Next
Sheets(1).Select '&lt;====== selects first sheet in workbook
For Each ws In ActiveWorkbook.Worksheets
  ws.Protect DrawingObjects:=True, _
    Contents:=True, Password:=""
Next ws

End Sub</pre>
<p>The same line was added to the Unprotect macro.</p>
<pre>Sub UnProtectAllSheetsNoPwd()
Dim ws As Worksheet
On Error Resume Next
Sheets(1).Select '&lt;====== selects first sheet in workbook
For Each ws In ActiveWorkbook.Worksheets
  ws.Unprotect
Next ws

End Sub</pre>
<h3>Watch the Protect Macro Fails Video</h3>
<p>To see the problem that occurs when you try to protect or unprotect group sheets, and the code change that fixes it, please watch this short Excel video tutorial.</p>
<div><object width="425" height="355" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/B6kGrWiXoeY&amp;hl=en" /><embed width="425" height="355" type="application/x-shockwave-flash" src="http://www.youtube.com/v/B6kGrWiXoeY&amp;hl=en" /></object></div>
<p>___________</p>
<p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/04/26/when-good-excel-macros-go-bad/">When Good Excel Macros Go Bad</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.contextures.com/archives/2012/04/26/when-good-excel-macros-go-bad/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Get Good Dates With Excel Data Validation</title>
		<link>http://blog.contextures.com/archives/2012/04/24/get-good-dates-with-excel-data-validation/</link>
		<comments>http://blog.contextures.com/archives/2012/04/24/get-good-dates-with-excel-data-validation/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 04:02:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Excel Data Validation]]></category>

		<guid isPermaLink="false">http://blog.contextures.com/archives/2012/04/24/get-good-dates-with-excel-data-validation/</guid>
		<description><![CDATA[<p>There's a story making the rounds, about a guy who rated all his online dating prospects, by using an Excel worksheet. While I'm sure we could all learn a thing or two from that guy's file, this article is about a different kind of dates – calendar dates. </p> <p>Calendar dates might not be as exciting, but unlike romantic dates, you can use data validation to help keep them under control in Excel.</p> Entering Period End Dates <p>Last week in the Daily Dose of Excel blog, Dick Kusleika was looking for a more efficient way to enter a Period Ending date in his time sheet. Every two weeks he sets up a new workbook, and has to add two weeks to the previous end date.</p> <p>Sometimes it's easy to do that kind of math in your head, but if you're rolling into a new month, the calculation can be trickier. <p>Continue reading <a href="http://blog.contextures.com/archives/2012/04/24/get-good-dates-with-excel-data-validation/">Get Good Dates With Excel Data Validation</a></p><p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/04/24/get-good-dates-with-excel-data-validation/">Get Good Dates With Excel Data Validation</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></description>
			<content:encoded><![CDATA[<p><img style="border-right-width: 0px; margin: 0px 0px 10px 10px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="right" src="http://blog.contextures.com/wp-content/uploads/2012/04/image.png" width="100" height="73" />There's a story making the rounds, about a guy who rated all his online dating prospects, by using an Excel worksheet. While I'm sure we could all learn a thing or two from that guy's file, this article is about a different kind of dates – calendar dates. </p>
<p>Calendar dates might not be as exciting, but unlike romantic dates, you can use <strong><a title="data validation" href="http://www.contextures.com/exceldatavalidationdates.html">data validation</a></strong> to help keep them under control in Excel.</p>
<h3>Entering Period End Dates</h3>
<p>Last week in the Daily Dose of Excel blog, Dick Kusleika was looking for a more efficient way to enter a <a title="Period Ending date in his time sheet" href="http://www.dailydoseofexcel.com/archives/2012/04/20/incrementing-dates-in-excel-cells/" rel="nofollow">Period Ending date in his time sheet</a>. Every two weeks he sets up a new workbook, and has to add two weeks to the previous end date.</p>
<p>Sometimes it's easy to do that kind of math in your head, but if you're rolling into a new month, the calculation can be trickier. So, Dick changed the date cell to a formula, and just added 14 to that calculation every two weeks.</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blog.contextures.com/wp-content/uploads/2012/04/image1.png" width="420" height="174" /> </p>
<p>There were a few suggestions for solving the problem, but Dick wanted something simple and static -- the date cell couldn't change, if you opened the file on a different date.</p>
<h3>Create a Dynamic List of Dates</h3>
<p>My suggestion was to create a <a title="drop down list" href="http://www.contextures.com/xlDataVal01.html">drop down list</a> of Period End dates, and select the next date from that list. With some formulas in the background, the list of valid dates would update automatically. However, when you select one of those dates in the Period End cell, it's a static entry in that cell.</p>
<p>The first step is to create the list of dates, based on Dick's original Period End date – October 13, 2010. </p>
<ul>
<li>On Sheet2, put the starting date in cell C2: <strong>=DATE(2010,8,13)</strong> </li>
<li>In cell C3, enter a formula to calculate the current date: <strong>=TODAY()</strong> </li>
<li>In C6, enter this formula, to calculate the current pay period's week end:      <br /><strong>=C2+INT((C3-C2)/14)*14 </strong></li>
</ul>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="datavalidationdates16" border="0" alt="datavalidationdates16" src="http://blog.contextures.com/wp-content/uploads/2012/04/datavalidationdates16.png" width="357" height="246" /> </p>
<ul>
<li>In C5, subtract 14 days, to calculate the previous period end date: <strong>=C6-14</strong> </li>
<li>In C7, add 14 days, to calculate the next period end date: <strong>=C6+14 </strong><strong>&#160;</strong></li>
</ul>
<h3>Name the Date List</h3>
<p>Next, you'll name the date list, so you can use it in a data validation drop down.</p>
<ul>
<li>Select cells C5:C7, and click in the Name Box, to the left of the Formula bar</li>
<li>Type a one-word name for the list – DateList – and press the Enter key.</li>
</ul>
<p><strong><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="datavalidationdates17" border="0" alt="datavalidationdates17" src="http://blog.contextures.com/wp-content/uploads/2012/04/datavalidationdates17.png" width="261" height="229" />&#160;</strong></p>
<h3>Create the Drop Down List of Dates</h3>
<p>Back on the Time Sheet, you'll add a data validation drop down list in the date cell.</p>
<ul>
<li>On the Time Sheet, select the Period End date cell.</li>
<li>On the Excel Ribbon, click the Data tab, and click Data Validation.</li>
<li>From the Allow drop down, click on List</li>
<li>In the Source box, type an equal sign and the list's name:&#160; <strong>=DateList</strong></li>
<li>Click OK to close the data validation dialog box.</li>
</ul>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="datavalidationdates13" border="0" alt="datavalidationdates13" src="http://blog.contextures.com/wp-content/uploads/2012/04/datavalidationdates13.png" width="303" height="232" /> </p>
<h3>Test the Drop Down List of Dates</h3>
<p>On the Time Sheet, the Period End date cell now has a drop down arrow.</p>
<ul>
<li>Click the arrow, to see the current list of dates, and click on a date to select it.</li>
</ul>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="datavalidationdates18" border="0" alt="datavalidationdates18" src="http://blog.contextures.com/wp-content/uploads/2012/04/datavalidationdates18.png" width="324" height="183" /> </p>
<p>The selected date is entered in the cell, as a value, not a formula. Even when the list of dates changes, the selected date will not be affected.</p>
<h3>More Examples</h3>
<p>Please visit the Contextures website for more <strong><a title="examples of Excel Data Validation for dates" href="http://www.contextures.com/exceldatavalidationdates.html">examples of Excel Data Validation for dates</a></strong>.</p>
<p>__________________</p>
<p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/04/24/get-good-dates-with-excel-data-validation/">Get Good Dates With Excel Data Validation</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.contextures.com/archives/2012/04/24/get-good-dates-with-excel-data-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Data Source for All Pivot Tables</title>
		<link>http://blog.contextures.com/archives/2012/04/19/change-data-source-for-all-pivot-tables/</link>
		<comments>http://blog.contextures.com/archives/2012/04/19/change-data-source-for-all-pivot-tables/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 04:19:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Pivot Table]]></category>

		<guid isPermaLink="false">http://blog.contextures.com/archives/2012/04/19/change-data-source-for-all-pivot-tables/</guid>
		<description><![CDATA[<p>If you want to change the data source for a single Excel Pivot Table, you can use a command on the Ribbon.</p> Select a cell in the pivot table that you want to change On the Ribbon, under PivotTable Tools, click the Options tab Click the upper part of the Change Data Source command <p> </p> When the Change PivotTable Data Source dialog box opens, press the F3 key on the keyboard, to open the Paste Name window. Click on the named range that you want to use, and click OK <p></p> Click OK to close the Change PivotTable Data Source dialog box. Change All the Pivot Tables in the Workbook <p>If you have several pivot tables in a workbook, and want to change all of them to a new data source, you can use a macro, instead of making the changes manually. I've added a new page on the <p>Continue reading <a href="http://blog.contextures.com/archives/2012/04/19/change-data-source-for-all-pivot-tables/">Change Data Source for All Pivot Tables</a></p><p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/04/19/change-data-source-for-all-pivot-tables/">Change Data Source for All Pivot Tables</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></description>
			<content:encoded><![CDATA[<p>If you want to change the data source for a single <a title="Excel Pivot Table" href="http://www.contextures.com/CreatePivotTable.html">Excel Pivot Table</a>, you can use a command on the Ribbon.</p>
<ul>
<li>Select a cell in the pivot table that you want to change</li>
<li>On the Ribbon, under PivotTable Tools, click the Options tab</li>
<li>Click the upper part of the Change Data Source command</li>
</ul>
<p><a href="http://blog.contextures.com/wp-content/uploads/2012/04/datasourcechange02.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="datasourcechange02" border="0" alt="datasourcechange02" src="http://blog.contextures.com/wp-content/uploads/2012/04/datasourcechange02_thumb.png" width="366" height="150" /></a> </p>
<ul>
<li>When the Change PivotTable Data Source dialog box opens, press the F3 key on the keyboard, to open the Paste Name window.</li>
<li>Click on the named range that you want to use, and click OK</li>
</ul>
<p><a href="http://blog.contextures.com/wp-content/uploads/2012/04/datasourcechange03.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="datasourcechange03" border="0" alt="datasourcechange03" src="http://blog.contextures.com/wp-content/uploads/2012/04/datasourcechange03_thumb.png" width="401" height="322" /></a></p>
<ul>
<li>Click OK to close the Change PivotTable Data Source dialog box.</li>
</ul>
<h3>Change All the Pivot Tables in the Workbook</h3>
<p>If you have several pivot tables in a workbook, and want to change all of them to a new data source, you can use a macro, instead of making the changes manually. I've added a new page on the Contextures website – <a title="Excel Pivot Table Data Source" href="http://www.contextures.com/excelpivottabledatasource.html">Excel Pivot Table Data Source</a> – with sample code to update all the pivot tables.</p>
<p>The macro adds a sheet to your active workbook, showing a list of the file's named ranges. Then, the macro prompts you to enter one of those names, as the new data source for all the pivot tables.</p>
<p><a href="http://blog.contextures.com/wp-content/uploads/2012/04/datasourcechange01.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="datasourcechange01" border="0" alt="datasourcechange01" src="http://blog.contextures.com/wp-content/uploads/2012/04/datasourcechange01_thumb.png" width="394" height="272" /></a> </p>
<p>____________</p>
<p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/04/19/change-data-source-for-all-pivot-tables/">Change Data Source for All Pivot Tables</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.contextures.com/archives/2012/04/19/change-data-source-for-all-pivot-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Show Excel Preview Picture When Opening Files</title>
		<link>http://blog.contextures.com/archives/2012/04/17/how-to-show-excel-preview-picture-when-opening-files/</link>
		<comments>http://blog.contextures.com/archives/2012/04/17/how-to-show-excel-preview-picture-when-opening-files/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 04:01:00 +0000</pubDate>
		<dc:creator>Debra Dalgleish</dc:creator>
				<category><![CDATA[Excel tips]]></category>

		<guid isPermaLink="false">http://blog.contextures.com/archives/2012/04/17/how-to-show-excel-preview-picture-when-opening-files/</guid>
		<description><![CDATA[<p>When you're opening files in Excel, you can see the file Details, or the icons, or select another way to look at the list, such as Preview. </p> <p>That Preview option sounds promising, but instead of a picture of the file's contents, you usually see this message instead – Preview Not Available. And that's not much help.</p> <p>If you want to see a preview picture for an Excel file, you have to change one of the file's Property settings – keep reading to learn how. Or watch the video at the end of this article.</p> <p></p> Change the Excel File Settings <p>Every recent version of Excel has a different way of getting to its Property settings, but here are the basic steps for turning on the Preview Picture option:</p> Open the Property dialog box Go to the Summary tab Add a check mark to the Save Preview Picture option Click <p>Continue reading <a href="http://blog.contextures.com/archives/2012/04/17/how-to-show-excel-preview-picture-when-opening-files/">How to Show Excel Preview Picture When Opening Files</a></p><p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/04/17/how-to-show-excel-preview-picture-when-opening-files/">How to Show Excel Preview Picture When Opening Files</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></description>
			<content:encoded><![CDATA[<p>When you're opening files in Excel, you can see the file Details, or the icons, or select another way to look at the list, such as Preview. </p>
<p>That Preview option sounds promising, but instead of a picture of the file's contents, you usually see this message instead – Preview Not Available. And that's not much help.</p>
<p>If you want to see a <a title="preview picture for an Excel file" href="http://www.contextures.com/excelpreviewpicture.html">preview picture for an Excel file</a>, you have to change one of the file's Property settings – keep reading to learn how. Or watch the video at the end of this article.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="PreviewPicture07" border="0" alt="PreviewPicture07" src="http://blog.contextures.com/wp-content/uploads/2012/04/PreviewPicture07.png" width="405" height="312" /></p>
<h3>Change the Excel File Settings</h3>
<p>Every recent version of Excel has a different way of getting to its Property settings, but here are the basic steps for turning on the Preview Picture option:</p>
<ol>
<li>Open the Property dialog box</li>
<li>Go to the Summary tab</li>
<li>Add a check mark to the Save Preview Picture option</li>
<li>Click OK to close the dialog box.</li>
</ol>
<p>For details on getting to the Property settings in different versions of Excel, please go to the <strong><a title="Excel Preview Picture" href="http://www.contextures.com/excelpreviewpicture.html">Excel Preview Picture</a></strong> page on the Contextures website.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="PreviewPicture03" border="0" alt="PreviewPicture03" src="http://blog.contextures.com/wp-content/uploads/2012/04/PreviewPicture03.png" width="377" height="320" /></p>
<h3>Watch the Excel Preview Picture Video</h3>
<p>This video shows how to change an Excel 2010 file's settings, so you can see its Preview picture. You'll also see tips for seeing the Excel preview pictures in Windows Explorer.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:129f273b-6f5f-4152-8ebf-d4b2adcd9d68" class="wlWriterEditableSmartContent">
<div><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/HO91Ju3WOpY&amp;hl=en"></param><embed src="http://www.youtube.com/v/HO91Ju3WOpY&amp;hl=en" type="application/x-shockwave-flash" width="425" height="355"></embed></object></div>
</div>
<p>_________</p>
<p>RSS Footer: Thank you for subscribing to the RSS feed for <a href="http://blog.contextures.com">Contextures Blog</a> .

You can read the full article here: <a href="http://blog.contextures.com/archives/2012/04/17/how-to-show-excel-preview-picture-when-opening-files/">How to Show Excel Preview Picture When Opening Files</a> 

Please visit the <a href="http://www.facebook.com/Contextures">Contextures page on Facebook</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.contextures.com/archives/2012/04/17/how-to-show-excel-preview-picture-when-opening-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

