T
Tim
Having a problem with macros associated with combo box
values.
Sub DropDown136_Change()
Application.ScreenUpdating = False
If Worksheets("Exercise Sheet").Range("A43").Value =
6 Then
Rows("44:54").Select
Selection.EntireRow.Hidden = False
End If
If Worksheets("Exercise Sheet").Range("A43").Value =
2 Then
Rows("44:54").Select
Selection.EntireRow.Hidden = False
Rows("52:54").Select
Selection.EntireRow.Hidden = True
End If
If Worksheets("Exercise Sheet").Range("A43").Value =
3 Then
Rows("44:54").Select
Selection.EntireRow.Hidden = False
Rows("50:54").Select
Selection.EntireRow.Hidden = True
End If
If Worksheets("Exercise Sheet").Range("A43").Value =
5 Then
Rows("44:54").Select
Selection.EntireRow.Hidden = False
Rows("50:54").Select
Selection.EntireRow.Hidden = True
End If
If Worksheets("Exercise Sheet").Range("A43").Value =
4 Then
Rows("44:54").Select
Selection.EntireRow.Hidden = False
Rows("49:54").Select
Selection.EntireRow.Hidden = True
End If
Application.ScreenUpdating = True
End Sub
This works exactly like it should for the first drop down
box...the other four...zip. Can someone tell me what I'm
missing?
values.
Sub DropDown136_Change()
Application.ScreenUpdating = False
If Worksheets("Exercise Sheet").Range("A43").Value =
6 Then
Rows("44:54").Select
Selection.EntireRow.Hidden = False
End If
If Worksheets("Exercise Sheet").Range("A43").Value =
2 Then
Rows("44:54").Select
Selection.EntireRow.Hidden = False
Rows("52:54").Select
Selection.EntireRow.Hidden = True
End If
If Worksheets("Exercise Sheet").Range("A43").Value =
3 Then
Rows("44:54").Select
Selection.EntireRow.Hidden = False
Rows("50:54").Select
Selection.EntireRow.Hidden = True
End If
If Worksheets("Exercise Sheet").Range("A43").Value =
5 Then
Rows("44:54").Select
Selection.EntireRow.Hidden = False
Rows("50:54").Select
Selection.EntireRow.Hidden = True
End If
If Worksheets("Exercise Sheet").Range("A43").Value =
4 Then
Rows("44:54").Select
Selection.EntireRow.Hidden = False
Rows("49:54").Select
Selection.EntireRow.Hidden = True
End If
Application.ScreenUpdating = True
End Sub
This works exactly like it should for the first drop down
box...the other four...zip. Can someone tell me what I'm
missing?