ianb
Member
Hi,
Here is the Next Button option for Drop Downs. Works fine :
[pre]
[/pre]
If I change the line to :
.ListIndex = .ListIndex - 1
This works fine for a back button until I get to the start and then it errors.
What other changes are required for the Back button to work as for the Next button it goes from End to Start. Back button cannot goto from Start to End.
Thanks.
Here is the Next Button option for Drop Downs. Works fine :
[pre]
Code:
Sub DropDownUpdateNext()
Sheets("Dashboard").Select
Application.Goto Range("a1")
With Sheets("Dashboard")
.Select
With .DropDowns("Drop Down 1")
Do
If .ListIndex < .ListCount Then
.ListIndex = .ListIndex + 1
Else
.ListIndex = 1
End If
Debug.Print .ListIndex, .ListCount, .List(.ListIndex)
Loop While .List(.ListIndex) = ""
End With
End With
End Sub
If I change the line to :
.ListIndex = .ListIndex - 1
This works fine for a back button until I get to the start and then it errors.
What other changes are required for the Back button to work as for the Next button it goes from End to Start. Back button cannot goto from Start to End.
Thanks.