Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Get count of active (non-empty) rows and columns | Excel Programming | |||
Delete rows that are empty across columns | Excel Worksheet Functions | |||
Empty Rows and Columns | New Users to Excel | |||
Delete rows with empty cells in columns B&C | Excel Discussion (Misc queries) | |||
Find empty rows or columns | Excel Programming |