Hello,
I have a table with two columns (min value and max value) and I want to filter the rows typing in the desired range in two separate cells.
I have achieved to make it for the first column. It is as follows:
Sub SearcRange()
'Hide
Dim Cell As Range
Var = Range("C1").Value
Application.ScreenUpdating = False
Range("AL9:AL500").End(xlDown).Select
ActiveCell.Offset(-1, 0).Select
For Each Cell In Range(ActiveCell, "AL9:AL500")
Cell.EntireRow.Hidden = Cell.Value >= Var
Next
Application.ScreenUpdating = True
End Sub
Actually, I need the result to be filtered again according column AM9:AM500 taking the value from cell C2.
Can you help me please?
Cheers,
Anton
I have a table with two columns (min value and max value) and I want to filter the rows typing in the desired range in two separate cells.
I have achieved to make it for the first column. It is as follows:
Sub SearcRange()
'Hide
Dim Cell As Range
Var = Range("C1").Value
Application.ScreenUpdating = False
Range("AL9:AL500").End(xlDown).Select
ActiveCell.Offset(-1, 0).Select
For Each Cell In Range(ActiveCell, "AL9:AL500")
Cell.EntireRow.Hidden = Cell.Value >= Var
Next
Application.ScreenUpdating = True
End Sub
Actually, I need the result to be filtered again according column AM9:AM500 taking the value from cell C2.
Can you help me please?
Cheers,
Anton