![]() |
defining a range
Hi All,
I defined a range containing empty cells in column C: Dim emptycells As Range Set emptycells = Columns("C:C").SpecialCells(xlCellTypeBlanks) How can I define another range that contains all rows in which these empty cells occur? Thanks, Stefi |
defining a range
Hi Stefi,
Try: Dim EmptyCells As Range On Error Resume Next Set EmptyCells = Columns("C:C"). _ SpecialCells(xlCellTypeBlanks).EntireRow On Error GoTo 0 --- Regards, Norman "Stefi" wrote in message ... Hi All, I defined a range containing empty cells in column C: Dim emptycells As Range Set emptycells = Columns("C:C").SpecialCells(xlCellTypeBlanks) How can I define another range that contains all rows in which these empty cells occur? Thanks, Stefi |
defining a range
Thanks Norman, how simple it is if one knows the answer!
Stefi €˛Norman Jones€¯ ezt Ć*rta: Hi Stefi, Try: Dim EmptyCells As Range On Error Resume Next Set EmptyCells = Columns("C:C"). _ SpecialCells(xlCellTypeBlanks).EntireRow On Error GoTo 0 --- Regards, Norman "Stefi" wrote in message ... Hi All, I defined a range containing empty cells in column C: Dim emptycells As Range Set emptycells = Columns("C:C").SpecialCells(xlCellTypeBlanks) How can I define another range that contains all rows in which these empty cells occur? Thanks, Stefi |
All times are GMT +1. The time now is 11:36 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com