combo box can do more than change?

T

theintern

I have some code for a combo box in a user form. however, i'd like it to run
each time the user selects a value from from the box, even if it is the same
value. right now it only runs if the user changes the value. i tried
putting it to trigger on Exit, instead of Change, but that said the
"Procedure declaration does not match description of event or precedure
having the same name."

Help please ;)

thanks
scott

Private Sub MonthBox_Change()
If Not (MonthBox.Value = "Select month") Then
YearBox_Change
End If
End Sub

'YearBox_Change is a sub right below MonthBox which has some code in it, but
nothing that should be causing this. I tried changing YearBox and MonthBox
to Exit and both give me that error
 
T

theintern

A few of the others work as well (AfterUpdate, Click) but i'm thinking it's
just something hardcoded into windows, so no worries. what i have will be
good enough.
 
T

theintern

yeah, i think click is my best option. it still doesn't re-run if i select
the year currently selected (i.e. i have to click on a different year, view
it's stats, then go back and click the year i want) but it's not that big of
a deal.

Thanks!
scott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top