Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Hi All OK thanks to everyone for their help. Much appreciated. Best Wishes In article , Gord Dibben writes Colin If you must select try this macro. Sub Select_Rows() Dim c As Range, tempR As Range Set myRng = Range("A1:A100") 'check each cell in the selection For Each c In myRng If c < 200 And c.Offset(0, 5).Value = "Green" Then If tempR Is Nothing Then 'initialize tempR with the first qualifying cell Set tempR = c Else 'add additional cells to tempR Set tempR = Union(tempR, c) End If End If Next c 'display message and stop if no cells found If tempR Is Nothing Then MsgBox "There are no Rows " & _ "that meet the criteria." End End If 'select qualifying cells tempR.EntireRow.Select End Sub Gord |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting rows that satisfy multiple conditions | Excel Worksheet Functions | |||
select rows and delete based on criteria | Excel Programming | |||
Satisfy 2 and more criteria | Excel Worksheet Functions | |||
Select rows based on criteria | Excel Worksheet Functions | |||
add a column only if 5 other cells on the row satisfy criteria | Excel Worksheet Functions |