I have this code to hide and unhide rows and final got it to work on one sheet, but after adding the other 5 sheets now I am getting a compile error: Block If without End If....I am enew o VA so I am sure I am missing soothing simple, thanks for your help!!
Bob
Here is the code:
Bob
Here is the code:
Code:
Sub HideRows()
If Sheets("Batch 1").Range("D7").Value = "0" Then
Sheets("Batch 1").Rows("7").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D7").Value > "0" Then
Sheets("Batch 1").Rows("7").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D8").Value = "0" Then
Sheets("Batch 1").Rows("8").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D8").Value > "0" Then
Sheets("Batch 1").Rows("8").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D9").Value = "0" Then
Sheets("Batch 1").Rows("9").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D9").Value > "0" Then
Sheets("Batch 1").Rows("9").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D10").Value = "0" Then
Sheets("Batch 1").Rows("10").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D10").Value > "0" Then
Sheets("Batch 1").Rows("10").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D11").Value = "0" Then
Sheets("Batch 1").Rows("11").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D11").Value > "0" Then
Sheets("Batch 1").Rows("11").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D12").Value = "0" Then
Sheets("Batch 1").Rows("12").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D12").Value > "0" Then
Sheets("Batch 1").Rows("12").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D13").Value = "0" Then
Sheets("Batch 1").Rows("13").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D13").Value > "0" Then
Sheets("Batch 1").Rows("13").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D14").Value = "0" Then
Sheets("Batch 1").Rows("14").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D14").Value > "0" Then
Sheets("Batch 1").Rows("14").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D15").Value = "0" Then
Sheets("Batch 1").Rows("15").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D15").Value > "0" Then
Sheets("Batch 1").Rows("15").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D16").Value = "0" Then
Sheets("Batch 1").Rows("16").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D16").Value > "0" Then
Sheets("Batch 1").Rows("16").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D17").Value = "0" Then
Sheets("Batch 1").Rows("17").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D17").Value > "0" Then
Sheets("Batch 1").Rows("17").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D18").Value = "0" Then
Sheets("Batch 1").Rows("18").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D18").Value > "0" Then
Sheets("Batch 1").Rows("18").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D19").Value = "0" Then
Sheets("Batch 1").Rows("19").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D19").Value > "0" Then
Sheets("Batch 1").Rows("19").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D20").Value = "0" Then
Sheets("Batch 1").Rows("20").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D20").Value > "0" Then
Sheets("Batch 1").Rows("20").EntireRow.Hidden = False
If Sheets("Batch 1").Range("D21").Value = "0" Then
Sheets("Batch 1").Rows("21").EntireRow.Hidden = True
ElseIf Sheets("Batch 1").Range("D21").Value > "0" Then
Sheets("Batch 1").Rows("21").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D7").Value = "0" Then
Sheets("Batch 2").Rows("7").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D7").Value > "0" Then
Sheets("Batch 2").Rows("7").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D8").Value = "0" Then
Sheets("Batch 2").Rows("8").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D8").Value > "0" Then
Sheets("Batch 2").Rows("8").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D9").Value = "0" Then
Sheets("Batch 2").Rows("9").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D9").Value > "0" Then
Sheets("Batch 2").Rows("9").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D10").Value = "0" Then
Sheets("Batch 2").Rows("10").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D10").Value > "0" Then
Sheets("Batch 2").Rows("10").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D11").Value = "0" Then
Sheets("Batch 2").Rows("11").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D11").Value > "0" Then
Sheets("Batch 2").Rows("11").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D12").Value = "0" Then
Sheets("Batch 2").Rows("12").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D12").Value > "0" Then
Sheets("Batch 2").Rows("12").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D13").Value = "0" Then
Sheets("Batch 2").Rows("13").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D13").Value > "0" Then
Sheets("Batch 2").Rows("13").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D14").Value = "0" Then
Sheets("Batch 2").Rows("14").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D14").Value > "0" Then
Sheets("Batch 2").Rows("14").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D15").Value = "0" Then
Sheets("Batch 2").Rows("15").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D15").Value > "0" Then
Sheets("Batch 2").Rows("15").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D16").Value = "0" Then
Sheets("Batch 2").Rows("16").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D16").Value > "0" Then
Sheets("Batch 2").Rows("16").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D17").Value = "0" Then
Sheets("Batch 2").Rows("17").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D17").Value > "0" Then
Sheets("Batch 2").Rows("17").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D18").Value = "0" Then
Sheets("Batch 2").Rows("18").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D18").Value > "0" Then
Sheets("Batch 2").Rows("18").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D19").Value = "0" Then
Sheets("Batch 2").Rows("19").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D19").Value > "0" Then
Sheets("Batch 2").Rows("19").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D20").Value = "0" Then
Sheets("Batch 2").Rows("20").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D20").Value > "0" Then
Sheets("Batch 2").Rows("20").EntireRow.Hidden = False
If Sheets("Batch 2").Range("D21").Value = "0" Then
Sheets("Batch 2").Rows("21").EntireRow.Hidden = True
ElseIf Sheets("Batch 2").Range("D21").Value > "0" Then
Sheets("Batch 2").Rows("21").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D7").Value = "0" Then
Sheets("Batch 3").Rows("7").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D7").Value > "0" Then
Sheets("Batch 3").Rows("7").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D8").Value = "0" Then
Sheets("Batch 3").Rows("8").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D8").Value > "0" Then
Sheets("Batch 3").Rows("8").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D9").Value = "0" Then
Sheets("Batch 3").Rows("9").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D9").Value > "0" Then
Sheets("Batch 3").Rows("9").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D10").Value = "0" Then
Sheets("Batch 3").Rows("10").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D10").Value > "0" Then
Sheets("Batch 3").Rows("10").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D11").Value = "0" Then
Sheets("Batch 3").Rows("11").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D11").Value > "0" Then
Sheets("Batch 3").Rows("11").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D12").Value = "0" Then
Sheets("Batch 3").Rows("12").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D12").Value > "0" Then
Sheets("Batch 3").Rows("12").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D13").Value = "0" Then
Sheets("Batch 3").Rows("13").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D13").Value > "0" Then
Sheets("Batch 3").Rows("13").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D14").Value = "0" Then
Sheets("Batch 3").Rows("14").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D14").Value > "0" Then
Sheets("Batch 3").Rows("14").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D15").Value = "0" Then
Sheets("Batch 3").Rows("15").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D15").Value > "0" Then
Sheets("Batch 3").Rows("15").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D16").Value = "0" Then
Sheets("Batch 3").Rows("16").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D16").Value > "0" Then
Sheets("Batch 3").Rows("16").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D17").Value = "0" Then
Sheets("Batch 3").Rows("17").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D17").Value > "0" Then
Sheets("Batch 3").Rows("17").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D18").Value = "0" Then
Sheets("Batch 3").Rows("18").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D18").Value > "0" Then
Sheets("Batch 3").Rows("18").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D19").Value = "0" Then
Sheets("Batch 3").Rows("19").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D19").Value > "0" Then
Sheets("Batch 3").Rows("19").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D20").Value = "0" Then
Sheets("Batch 3").Rows("20").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D20").Value > "0" Then
Sheets("Batch 3").Rows("20").EntireRow.Hidden = False
If Sheets("Batch 3").Range("D21").Value = "0" Then
Sheets("Batch 3").Rows("21").EntireRow.Hidden = True
ElseIf Sheets("Batch 3").Range("D21").Value > "0" Then
Sheets("Batch 3").Rows("21").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D7").Value = "0" Then
Sheets("Batch 4").Rows("7").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D7").Value > "0" Then
Sheets("Batch 4").Rows("7").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D8").Value = "0" Then
Sheets("Batch 4").Rows("8").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D8").Value > "0" Then
Sheets("Batch 4").Rows("8").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D9").Value = "0" Then
Sheets("Batch 4").Rows("9").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D9").Value > "0" Then
Sheets("Batch 4").Rows("9").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D10").Value = "0" Then
Sheets("Batch 4").Rows("10").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D10").Value > "0" Then
Sheets("Batch 4").Rows("10").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D11").Value = "0" Then
Sheets("Batch 4").Rows("11").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D11").Value > "0" Then
Sheets("Batch 4").Rows("11").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D12").Value = "0" Then
Sheets("Batch 4").Rows("12").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D12").Value > "0" Then
Sheets("Batch 4").Rows("12").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D13").Value = "0" Then
Sheets("Batch 4").Rows("13").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D13").Value > "0" Then
Sheets("Batch 4").Rows("13").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D14").Value = "0" Then
Sheets("Batch 4").Rows("14").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D14").Value > "0" Then
Sheets("Batch 4").Rows("14").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D15").Value = "0" Then
Sheets("Batch 4").Rows("15").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D15").Value > "0" Then
Sheets("Batch 4").Rows("15").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D16").Value = "0" Then
Sheets("Batch 4").Rows("16").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D16").Value > "0" Then
Sheets("Batch 4").Rows("16").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D17").Value = "0" Then
Sheets("Batch 4").Rows("17").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D17").Value > "0" Then
Sheets("Batch 4").Rows("17").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D18").Value = "0" Then
Sheets("Batch 4").Rows("18").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D18").Value > "0" Then
Sheets("Batch 4").Rows("18").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D19").Value = "0" Then
Sheets("Batch 4").Rows("19").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D19").Value > "0" Then
Sheets("Batch 4").Rows("19").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D20").Value = "0" Then
Sheets("Batch 4").Rows("20").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D20").Value > "0" Then
Sheets("Batch 4").Rows("20").EntireRow.Hidden = False
If Sheets("Batch 4").Range("D21").Value = "0" Then
Sheets("Batch 4").Rows("21").EntireRow.Hidden = True
ElseIf Sheets("Batch 4").Range("D21").Value > "0" Then
Sheets("Batch 4").Rows("21").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D7").Value = "0" Then
Sheets("Batch 5").Rows("7").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D7").Value > "0" Then
Sheets("Batch 5").Rows("7").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D8").Value = "0" Then
Sheets("Batch 5").Rows("8").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D8").Value > "0" Then
Sheets("Batch 5").Rows("8").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D9").Value = "0" Then
Sheets("Batch 5").Rows("9").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D9").Value > "0" Then
Sheets("Batch 5").Rows("9").EntireRow.Hidden = False
If Sheets("Batch5").Range("D10").Value = "0" Then
Sheets("Batch 5").Rows("10").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D10").Value > "0" Then
Sheets("Batch 5").Rows("10").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D11").Value = "0" Then
Sheets("Batch 5").Rows("11").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D11").Value > "0" Then
Sheets("Batch 5").Rows("11").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D12").Value = "0" Then
Sheets("Batch 5").Rows("12").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D12").Value > "0" Then
Sheets("Batch 5").Rows("12").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D13").Value = "0" Then
Sheets("Batch 5").Rows("13").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D13").Value > "0" Then
Sheets("Batch 5").Rows("13").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D14").Value = "0" Then
Sheets("Batch 5").Rows("14").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D14").Value > "0" Then
Sheets("Batch 5").Rows("14").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D15").Value = "0" Then
Sheets("Batch 5").Rows("15").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D15").Value > "0" Then
Sheets("Batch 5").Rows("15").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D16").Value = "0" Then
Sheets("Batch 5").Rows("16").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D16").Value > "0" Then
Sheets("Batch 5").Rows("16").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D17").Value = "0" Then
Sheets("Batch 5").Rows("17").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D17").Value > "0" Then
Sheets("Batch 5").Rows("17").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D18").Value = "0" Then
Sheets("Batch 5").Rows("18").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D18").Value > "0" Then
Sheets("Batch 5").Rows("18").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D19").Value = "0" Then
Sheets("Batch 5").Rows("19").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D19").Value > "0" Then
Sheets("Batch 5").Rows("19").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D20").Value = "0" Then
Sheets("Batch 5").Rows("20").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D20").Value > "0" Then
Sheets("Batch 5").Rows("20").EntireRow.Hidden = False
If Sheets("Batch 5").Range("D21").Value = "0" Then
Sheets("Batch 5").Rows("21").EntireRow.Hidden = True
ElseIf Sheets("Batch 5").Range("D21").Value > "0" Then
Sheets("Batch 5").Rows("21").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D7").Value = "0" Then
Sheets("Batch 6").Rows("7").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D7").Value > "0" Then
Sheets("Batch 6").Rows("7").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D8").Value = "0" Then
Sheets("Batch 6").Rows("8").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D8").Value > "0" Then
Sheets("Batch 6").Rows("8").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D9").Value = "0" Then
Sheets("Batch 6").Rows("9").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D9").Value > "0" Then
Sheets("Batch 6").Rows("9").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D10").Value = "0" Then
Sheets("Batch 6").Rows("10").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D10").Value > "0" Then
Sheets("Batch 6").Rows("10").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D11").Value = "0" Then
Sheets("Batch 6").Rows("11").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D11").Value > "0" Then
Sheets("Batch 6").Rows("11").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D12").Value = "0" Then
Sheets("Batch 6").Rows("12").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D12").Value > "0" Then
Sheets("Batch 6").Rows("12").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D13").Value = "0" Then
Sheets("Batch 6").Rows("13").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D13").Value > "0" Then
Sheets("Batch 6").Rows("13").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D14").Value = "0" Then
Sheets("Batch 6").Rows("14").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D14").Value > "0" Then
Sheets("Batch 6").Rows("14").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D15").Value = "0" Then
Sheets("Batch 6").Rows("15").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D15").Value > "0" Then
Sheets("Batch 6").Rows("15").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D16").Value = "0" Then
Sheets("Batch 6").Rows("16").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D16").Value > "0" Then
Sheets("Batch 6").Rows("16").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D17").Value = "0" Then
Sheets("Batch 6").Rows("17").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D17").Value > "0" Then
Sheets("Batch 6").Rows("17").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D18").Value = "0" Then
Sheets("Batch 6").Rows("18").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D18").Value > "0" Then
Sheets("Batch 6").Rows("18").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D19").Value = "0" Then
Sheets("Batch 6").Rows("19").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D19").Value > "0" Then
Sheets("Batch 6").Rows("19").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D20").Value = "0" Then
Sheets("Batch 6").Rows("20").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D20").Value > "0" Then
Sheets("Batch 6").Rows("20").EntireRow.Hidden = False
If Sheets("Batch 6").Range("D21").Value = "0" Then
Sheets("Batch 6").Rows("21").EntireRow.Hidden = True
ElseIf Sheets("Batch 6").Range("D21").Value > "0" Then
Sheets("Batch 6").Rows("21").EntireRow.Hidden = False
End If
End If
End If
End If
End If
End If
End Sub
Last edited by a moderator: