As stated in the title i want to know how to hide a certain row if the value is higher then the one on another column.
Dim ws as WorkSheet: Set ws = Sheets("Sheet1")
Dim lr as Long
lr = ws.Cells(Rows.Count, "E").End(xlUp).Row
For each cell in ws.Range(ws.Cells(5, "E"), ws.Cells(lr, "E"))
If cell = 0 Then
cell.EntireRow.Hidden = True
End If
Next cell
This is the code one of you guys here kindly gave me for another of my problems and was to hide rows where the value was 0 (I'm really bad at programming and given my position get mostly stuff like this to do and wanted to know how to make it easier. There are other ways to do it but this is a code i got to understand at least a bit so i'd like to keep the main frame and i don't understand other solutions posted on various places and don't know how to adapt them sadly)
I know there must be a way to change de cell = 0 to soomething like cell < row ... So if one of you guys could help it would be great !