<?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: How To: Record Your Own Macro</title>
	<atom:link href="http://peltiertech.com/WordPress/how-to-recording-your-own-macro/feed/" rel="self" type="application/rss+xml" />
	<link>http://peltiertech.com/WordPress/how-to-recording-your-own-macro/</link>
	<description>PTS Excel Charts and Tutorials Blog</description>
	<lastBuildDate>Sat, 21 Nov 2009 04:01:08 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jon Peltier</title>
		<link>http://peltiertech.com/WordPress/how-to-recording-your-own-macro/comment-page-1/#comment-5097</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Fri, 17 Oct 2008 17:57:58 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/10/how-to-recording-your-own-macro/#comment-5097</guid>
		<description>Bob -

Here&#039;s a procedure that will clear unprotected cells in the active sheet. Place it in a regular module in the workbook.

&lt;pre class=&quot;vbasmall&quot;&gt;Sub ClearUnlockedCells()
  Dim r As Range
  Dim iCalc As Long
  
  Application.ScreenUpdating = False
  iCalc = Application.Calculation
  Application.Calculation = xlCalculationManual
  For Each r In ActiveSheet.UsedRange.Cells
    If Not r.Locked Then
      r.ClearContents
    End If
  Next
  Application.ScreenUpdating = True
  Application.Calculation = iCalc
End Sub&lt;/pre&gt;

&lt;p&gt; 
Don&#039;t use a cell as the trigger, open the Forms toolbar, and stick a button on the sheet. When the Assign Macro dialog pops up, select the above macro. Then change the caption on the button to something like &quot;Clear Inputs&quot;. Then protect the sheet.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Bob -</p>
<p>Here&#8217;s a procedure that will clear unprotected cells in the active sheet. Place it in a regular module in the workbook.</p>
<pre class="vbasmall">Sub ClearUnlockedCells()
  Dim r As Range
  Dim iCalc As Long

  Application.ScreenUpdating = False
  iCalc = Application.Calculation
  Application.Calculation = xlCalculationManual
  For Each r In ActiveSheet.UsedRange.Cells
    If Not r.Locked Then
      r.ClearContents
    End If
  Next
  Application.ScreenUpdating = True
  Application.Calculation = iCalc
End Sub</pre>
<p> <br />
Don&#8217;t use a cell as the trigger, open the Forms toolbar, and stick a button on the sheet. When the Assign Macro dialog pops up, select the above macro. Then change the caption on the button to something like &#8220;Clear Inputs&#8221;. Then protect the sheet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Postal Bob</title>
		<link>http://peltiertech.com/WordPress/how-to-recording-your-own-macro/comment-page-1/#comment-5092</link>
		<dc:creator>Postal Bob</dc:creator>
		<pubDate>Fri, 17 Oct 2008 16:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://peltiertech.com/WordPress/2008/03/10/how-to-recording-your-own-macro/#comment-5092</guid>
		<description>I need instructions on how to program 1 cell on a worksheet so that when you click on it it deletes the data that has been entered in unprotected cells.  Can this be done? I have to present this to my boss the end of next week and he&#039;s a computerphob, the easier it is the better he likes it.     Thanks</description>
		<content:encoded><![CDATA[<p>I need instructions on how to program 1 cell on a worksheet so that when you click on it it deletes the data that has been entered in unprotected cells.  Can this be done? I have to present this to my boss the end of next week and he&#8217;s a computerphob, the easier it is the better he likes it.     Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
