Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default detect empty rows or columns

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default detect empty rows or columns

AFAIK there's no way without looping through the cells and checking
them.
sorry!
susan


On Aug 1, 1:41*pm, guest 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.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default detect empty rows or columns

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
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.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default detect empty rows or columns

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 ...
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
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.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default detect empty rows or columns


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


"David McRitchie" wrote in message ...
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 ...
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
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get count of active (non-empty) rows and columns baga Excel Programming 3 December 6th 07 01:01 PM
Delete rows that are empty across columns ALATL Excel Worksheet Functions 0 November 6th 06 04:09 AM
Empty Rows and Columns fak119 New Users to Excel 1 April 5th 06 12:39 PM
Delete rows with empty cells in columns B&C Richard Excel Discussion (Misc queries) 3 March 18th 06 12:15 AM
Find empty rows or columns Marvin Excel Programming 2 November 16th 05 05:26 PM


All times are GMT +1. The time now is 08:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"