Добрый день!
Помогите, по-та, разобраться
никак не могу разделить события
If CheckBox10.Value = True Then GoTo A: - галка стоит
If CheckBox10.Value = True Then GoTo B: - галка не стоит
Помогите, по-та, разобраться
никак не могу разделить события
If CheckBox10.Value = True Then GoTo A: - галка стоит
If CheckBox10.Value = True Then GoTo B: - галка не стоит
Код |
---|
Private Sub CheckBox10_Click() If CheckBox10.Value = True Then GoTo A: If CheckBox10.Value = True Then GoTo B: A: For Each cell In ActiveSheet.UsedRange.Rows(1).Cells If cell.Value = "x" Then cell.EntireColumn.Hidden = False Next For Each cell In ActiveSheet.UsedRange.Columns(1).Cells If cell.Value = "x" Then cell.EntireRow.Hidden = False Next B: For Each cell In ActiveSheet.UsedRange.Rows(1).Cells If cell.Value = "x" Then cell.EntireColumn.Hidden = True Next For Each cell In ActiveSheet.UsedRange.Columns(1).Cells If cell.Value = "x" Then cell.EntireRow.Hidden = True Next End Sub |