Macro if cell equals 0
Solved
peybernes
Posted messages
50
Registration date
Status
Member
Last intervention
-
peybernes Posted messages 50 Registration date Status Member Last intervention -
peybernes Posted messages 50 Registration date Status Member Last intervention -
Hello everyone,
I'm currently working on an Excel file and I need your help!
I would like to create a macro that hides a row if a specific cell in that row equals 0.
The row should only be hidden if there is a 0 in the cell.
I had a solution, but it also hides the row when the cell is empty...
Here it is:
If Range ("AB2") = 0 Then
Rows("2:2").Select
Selection.EntireRow.Hidden = True
End If
Thank you for your help
Best regards
Peybernes
I'm currently working on an Excel file and I need your help!
I would like to create a macro that hides a row if a specific cell in that row equals 0.
The row should only be hidden if there is a 0 in the cell.
I had a solution, but it also hides the row when the cell is empty...
Here it is:
If Range ("AB2") = 0 Then
Rows("2:2").Select
Selection.EntireRow.Hidden = True
End If
Thank you for your help
Best regards
Peybernes
Thank you very much.