PC Review


Reply
Thread Tools Rate Thread

detect empty rows or columns

 
 
guest
Guest
Posts: n/a
 
      1st Aug 2008
is there any quick way to detect all empty rows and columns in the selected
data without reading all cell values?? quick help would be appreaciated.

thanks.
 
Reply With Quote
 
 
 
 
Susan
Guest
Posts: n/a
 
      1st Aug 2008
AFAIK there's no way without looping through the cells and checking
them.
sorry!
susan


On Aug 1, 1:41*pm, guest <gu...@discussions.microsoft.com> wrote:
> is there any quick way to detect all empty rows and columns in the selected
> data without reading all cell values?? quick help would be appreaciated.
>
> thanks.


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      1st Aug 2008
Sub Color_Blanks()
Dim rng As Range
Set rng = Nothing
On Error Resume Next
Set rng = Selection.SpecialCells(xlCellTypeBlanks)
On Error GoTo 0
If rng Is Nothing Then
'do nothing
Else
rng.Interior.Color = vbYellow
End If
End Sub


Gord Dibben MS Excel MVP

On Fri, 1 Aug 2008 10:41:02 -0700, guest <(E-Mail Removed)>
wrote:

>is there any quick way to detect all empty rows and columns in the selected
>data without reading all cell values?? quick help would be appreaciated.
>
>thanks.


 
Reply With Quote
 
David McRitchie
Guest
Posts: n/a
 
      2nd Aug 2008
A cell with a formula in it would not be empty
Delete ALL rows that are Entirely Blank (#RemoveEmptyRows)
http://www.mvps.org/dmcritchie/excel...emoveEmptyRows
--
HTH,
David McRitchie, Microsoft MVP -- Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm



"Gord Dibben" <gorddibbATshawDOTca> wrote in message news:(E-Mail Removed)...
> Sub Color_Blanks()
> Dim rng As Range
> Set rng = Nothing
> On Error Resume Next
> Set rng = Selection.SpecialCells(xlCellTypeBlanks)
> On Error GoTo 0
> If rng Is Nothing Then
> 'do nothing
> Else
> rng.Interior.Color = vbYellow
> End If
> End Sub
>
>
> Gord Dibben MS Excel MVP
>
> On Fri, 1 Aug 2008 10:41:02 -0700, guest <(E-Mail Removed)>
> wrote:
>
>>is there any quick way to detect all empty rows and columns in the selected
>>data without reading all cell values?? quick help would be appreaciated.
>>
>>thanks.

>

 
Reply With Quote
 
David McRitchie
Guest
Posts: n/a
 
      2nd Aug 2008

Sorry misread as delete, ignore my reply. Gord had it right.
--
David


"David McRitchie" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> A cell with a formula in it would not be empty
> Delete ALL rows that are Entirely Blank (#RemoveEmptyRows)
> http://www.mvps.org/dmcritchie/excel...emoveEmptyRows
> --
> HTH,
> David McRitchie, Microsoft MVP -- Excel
> My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
>
>
>
> "Gord Dibben" <gorddibbATshawDOTca> wrote in message news:(E-Mail Removed)...
>> Sub Color_Blanks()
>> Dim rng As Range
>> Set rng = Nothing
>> On Error Resume Next
>> Set rng = Selection.SpecialCells(xlCellTypeBlanks)
>> On Error GoTo 0
>> If rng Is Nothing Then
>> 'do nothing
>> Else
>> rng.Interior.Color = vbYellow
>> End If
>> End Sub
>>
>>
>> Gord Dibben MS Excel MVP
>>
>> On Fri, 1 Aug 2008 10:41:02 -0700, guest <(E-Mail Removed)>
>> wrote:
>>
>>>is there any quick way to detect all empty rows and columns in the selected
>>>data without reading all cell values?? quick help would be appreaciated.
>>>
>>>thanks.

>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete rows that are empty across columns =?Utf-8?B?QUxBVEw=?= Microsoft Excel Worksheet Functions 0 6th Nov 2006 04:09 AM
Empty Rows and Columns =?Utf-8?B?ZmFrMTE5?= Microsoft Excel New Users 1 5th Apr 2006 12:39 PM
Find empty rows or columns =?Utf-8?B?TWFydmlu?= Microsoft Excel Programming 2 16th Nov 2005 05:26 PM
Hiding empty rows and columns Fordy39 Microsoft Excel Misc 1 14th May 2004 07:27 AM
How to detect and delete empty rows in a list? =?Utf-8?B?U3RlZmY=?= Microsoft Excel Programming 6 23rd Mar 2004 12:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:41 AM.