Quick explanation: this chart depends on what is currently selected in a dropdown box and then the checkboxes which are linked to my selected cells that determine whether the corresponding checkboxes are selected or not.
This chart will scroll through each question and then check each checkbox one at a time, and then go to the next question in the dropdown.
To the excel gurus on here, pardon my oft found confused stupidityI'm learning! :D
To those who are interested, here is my code:
Code:Sub AnimateRegions() Dim AnimationinProgress As Boolean Dim r As Long, i As Long Dim starttime, finish, finish2, finish3, finish4, finish5 If AnimationinProgress Then AnimationinProgress = False End End If AnimationinProgress = True UnCheckAll For r = 0 To 9 'Number of items in the drop down box starttime = Timer Sheets("Compare").ComboBox1.ListIndex = r Compare Do While Timer < starttime + 3 DoEvents Loop finish = Timer Do While Timer < finish + 3 DoEvents Loop Range("Compare!ShowCentral").Value = True finish2 = Timer Do While Timer < finish2 + 3 DoEvents Loop Range("Compare!ShowNE").Value = True finish3 = Timer Do While Timer < finish3 + 3 DoEvents Loop Range("Compare!ShowSouth").Value = True finish4 = Timer Do While Timer < finish4 + 3 DoEvents Loop Range("Compare!ShowWest").Value = True finish5 = Timer Do While Timer < finish5 + 3 DoEvents Loop If r <> 9 Then UnCheckAll Else CheckAll Next r AnimationinProgress = False End Sub



Reply With Quote
I'm learning! :D

Bookmarks