kemperohlmeyer
Board Regular
- Joined
- Oct 4, 2006
- Messages
- 73
Fellow Nerds,
quick question...I wrote a macro that is used in conjunction with a combo-box using select case. The select case sub looks at the output cell of the combo box and then calls one of 5 subs to sort the data on the sheet. The sub works fine, but i want to make it real-time so that the user doesnt have to run the sub in order to sort the data. I just want the user to select his/her sort method and then have the code pick up the fact the output box changed and then automatically runs the sub.
I have VBA experience, but am a bit rusty. The present code is below.
Sub selectsort()
Dim dd As Integer
Select Case Range("c6").Value
Case 1
Call SortNames
Case 2
Call SortRoom
Case 3
Call SortAirline
Case 4
Call SortArriveTime
Case 5
Call SortDepartTime
End Select
End Sub
Thanks for the help,
ko
quick question...I wrote a macro that is used in conjunction with a combo-box using select case. The select case sub looks at the output cell of the combo box and then calls one of 5 subs to sort the data on the sheet. The sub works fine, but i want to make it real-time so that the user doesnt have to run the sub in order to sort the data. I just want the user to select his/her sort method and then have the code pick up the fact the output box changed and then automatically runs the sub.
I have VBA experience, but am a bit rusty. The present code is below.
Sub selectsort()
Dim dd As Integer
Select Case Range("c6").Value
Case 1
Call SortNames
Case 2
Call SortRoom
Case 3
Call SortAirline
Case 4
Call SortArriveTime
Case 5
Call SortDepartTime
End Select
End Sub
Thanks for the help,
ko