﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Classic Visual Basic (VB 6 or earlier) / VBA(Excel, Word, etc...)  / Testing for blank and/or empty rows or columns / Latest Posts</title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 09 Feb 2012 04:40:44 GMT</lastBuildDate><ttl>20</ttl><item><title>Testing for blank and/or empty rows or columns</title><link>http://www.a1vbcode.com/vbforums/Topic28584-14-1.aspx</link><description>I wish to loop through each row of a set area of a worksheet and delete only those rows which have nothing stored, regardless of whether they have never been used, or, if they once had contents in a cell/s that have since been cleared.  If any cell in the row has had its formatting altered or anything, I still wish it to be considered empty; as long as there is no formula or entry in a cell, I want it detected to be deleted.&lt;/P&gt;&lt;P&gt;1.  My text has the line&lt;/P&gt;&lt;P&gt;If IsEmpty(Range("A1")) then ....&lt;/P&gt;&lt;P&gt;which will test only if a particular cell is empty.&lt;/P&gt;&lt;P&gt;If I try&lt;/P&gt;&lt;P&gt;If IsEmpty(rows(1)) then&lt;/P&gt;&lt;P&gt;there is no compile error, but, if row 1 (1) has nothing in any cell, it still won't match if I have nothing in row 1 of the worksheet.&lt;/P&gt;&lt;P&gt;2.  What is the difference between somthing being &lt;EM&gt;empty&lt;/EM&gt; or something being &lt;EM&gt;null&lt;/EM&gt;?  I have tried other codes with &lt;EM&gt;null&lt;/EM&gt; to try to detect empty lines, but they've caused run errors or again logical ones.&lt;/P&gt;&lt;P&gt;Many thanks to anyone who can assist :-)</description><pubDate>Sat, 26 Dec 2009 19:08:40 GMT</pubDate><dc:creator>devophil</dc:creator></item></channel></rss>
