Private Sub CheckBox1_Click()
Call HideUnhide
End Sub
Private Sub CheckBox2_Click()
Call HideUnhide
End Sub
Private Sub CheckBox3_Click()
Call HideUnhide
End Sub
Private Sub CheckBox4_Click()
Call HideUnhide
End Sub
Private Sub CheckBox5_Click()
Call HideUnhide
End Sub
Private Sub CheckBox6_Click()
Call HideUnhide
End Sub
Private Sub CheckBox7_Click()
Call HideUnhide
End Sub
Private Sub CheckBox8_Click()
Call HideUnhide
End Sub
Private Sub CheckBox9_Click()
Call HideUnhide
End Sub
Private Sub CheckBox10_Click()
Call HideUnhide
End Sub
Private Sub CheckBox11_Click()
Call HideUnhide
End Sub
Private Sub CheckBox12_Click()
Call HideUnhide
End Sub
Private Sub CheckBox13_Click()
Call HideUnhide
End Sub
Private Sub CheckBox14_Click()
Call HideUnhide
End Sub
Private Sub CheckBox15_Click()
Call HideUnhide
End Sub
Private Sub CheckBox16_Click()
Call HideUnhide
End Sub
Private Sub CheckBox17_Click()
Call HideUnhide
End Sub
Private Sub CheckBox18_Click()
Call HideUnhide
End Sub
Private Sub CheckBox19_Click()
Call HideUnhide
End Sub
Private Sub CheckBox20_Click()
Call HideUnhide
End Sub
Private Sub HideUnhide()
If CheckBox1.Value = True Then
Sheets("WCPAT").Columns("B").Hidden = False
Else
Sheets("WCPAT").Columns("B").Hidden = True
End If
If CheckBox2.Value = True Then
Sheets("WCPAT").Columns("C").Hidden = False
Else
Sheets("WCPAT").Columns("C").Hidden = True
End If
If CheckBox3.Value = True Then
Sheets("WCPAT").Columns("F").Hidden = False
Else
Sheets("WCPAT").Columns("F").Hidden = False
End If
If CheckBox4.Value = True Then
Sheets("WCPAT").Columns("J").Hidden = False
Else
Sheets("WCPAT").Columns("J").Hidden = True
End If
If CheckBox5.Value = True Then
Sheets("WCPAT").Columns("G").Hidden = False
Else
Sheets("WCPAT").Columns("G").Hidden = True
End If
If CheckBox6.Value = True Then
Sheets("WCPAT").Columns("K").Hidden = False
Else
Sheets("WCPAT").Columns("K").Hidden = True
End If
If CheckBox7.Value = True Then
Sheets("WCPAT").Columns("N").Hidden = False
Else
Sheets("WCPAT").Columns("N").Hidden = True
End If
If CheckBox8.Value = True Then
Sheets("WCPAT").Columns("D").Hidden = False
Else
Sheets("WCPAT").Columns("D").Hidden = True
End If
If CheckBox9.Value = True Then
Sheets("WCPAT").Columns("H").Hidden = False
Else
Sheets("WCPAT").Columns("H").Hidden = True
End If
If CheckBox10.Value = True Then
Sheets("WCPAT").Columns("E").Hidden = False
Else
Sheets("WCPAT").Columns("E").Hidden = True
End If
If CheckBox11.Value = True Then
Sheets("WCPAT").Columns("I").Hidden = False
Else
Sheets("WCPAT").Columns("I").Hidden = True
End If
If CheckBox12.Value = True Then
Sheets("WCPAT").Columns("M").Hidden = False
Else
Sheets("WCPAT").Columns("M").Hidden = True
End If
If CheckBox13.Value = True Then
Sheets("WCPAT").Columns("L").Hidden = False
Else
Sheets("WCPAT").Columns("L").Hidden = True
End If
If CheckBox14.Value = True Then
Sheets("WCPAT").Rows("8:14").Hidden = False
Else
Sheets("WCPAT").Rows("8:14").Hidden = True
End If
If CheckBox15.Value = True Then
Sheets("WCPAT").Rows("15:17").Hidden = False
Else
Sheets("WCPAT").Rows("15:17").Hidden = True
End If
If CheckBox16.Value = True Then
Sheets("WCPAT").Rows("18:27").Hidden = False
Else
Sheets("WCPAT").Rows("18:27").Hidden = True
End If
If CheckBox17.Value = True Then
Sheets("WCPAT").Rows("28:37").Hidden = False
Else
Sheets("WCPAT").Rows("28:37").Hidden = True
End If
If CheckBox18.Value = True Then
Sheets("WCPAT").Rows("38:43").Hidden = False
Else
Sheets("WCPAT").Rows("38:43").Hidden = True
End If
If CheckBox19.Value = True Then
Sheets("WCPAT").Rows("44:52").Hidden = False
Else
Sheets("WCPAT").Rows("44:52").Hidden = True
End If
If CheckBox20.Value = True Then
Sheets("WCPAT").Rows("53:58").Hidden = False
Else
Sheets("WCPAT").Rows("53:58").Hidden = True
End If
End Sub