<?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>Excel Zoom &#187; Delete</title>
	<atom:link href="http://excelzoom.com/tag/delete/feed/" rel="self" type="application/rss+xml" />
	<link>http://excelzoom.com</link>
	<description>...because it&#039;s more than just a calculator</description>
	<lastBuildDate>Wed, 02 Sep 2009 20:43:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Delete Hidden Rows and Columns</title>
		<link>http://excelzoom.com/2009/02/45/</link>
		<comments>http://excelzoom.com/2009/02/45/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 14:44:28 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[Delete]]></category>
		<category><![CDATA[Hidden]]></category>

		<guid isPermaLink="false">http://excelzoom.com/?p=45</guid>
		<description><![CDATA[Sometimes we hide certain rows or columns because we don&#8217;t want the data to print, or just to get it out of the way. Other times though we simply don&#8217;t want to share the data in a hidden row or column. Assuming that the data in visible cells isn&#8217;t dependent on the data in hidden [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes we hide certain rows or columns because we don&#8217;t want the data to print, or just to get it out of the way. Other times though we simply don&#8217;t want to share the data in a hidden row or column. Assuming that the data in visible cells isn&#8217;t dependent on the data in hidden cells (i.e. if a formula references a hidden cell), we can use the macro below to automatically delete any hidden rows and columns in the active worksheet.</p>
<p>If you only want the hidden rows to be deleted, remove the three lines starting with For Ip = 256 through Next. To only delete the hidden columns, remove the next three lines starting with For lp = 65536 through Next.</p>
<p>Copy all of the code below. Paste it into your workbook&#8217;s Visual Basic editor, either under a Microsoft Excel Object or Module.</p>
<p>Need help? Use our <a href="http://excelzoom.com/?p=7">nifty guide</a> to help figure out how to install and use your macros.<br />
<code><br />
Sub DeleteHiddenRowsColumns()<br />
'<br />
'MACROS BY EXCELZOOM.COM<br />
'<br />
Application.ScreenUpdating = False<br />
For lp = 256 To 1 Step -1<br />
If Columns(lp).EntireColumn.Hidden = True Then Columns(lp).EntireColumn.Delete Else<br />
Next</code></p>
<p> </p>
<p><code>For lp = 65536 To 1 Step -1<br />
If Rows(lp).EntireRow.Hidden = True Then Rows(lp).EntireRow.Delete Else<br />
Next<br />
Application.ScreenUpdating = True<br />
End Sub</code></p>
<!-- Easy AdSense V2.61 -->
<!-- Post[count: 2] -->
<div class="ezAdsense adsense adsense-leadout" style="float:left;margin:12px;"><script type="text/javascript"><!--
google_ad_client = "pub-0662082843230645";
/* Excel Zoom Post Bottom468x60, created 5/31/09 */
google_ad_slot = "1891900730";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></content:encoded>
			<wfw:commentRss>http://excelzoom.com/2009/02/45/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
