dropdown box item to display a message

G

grocottg

Hi,

I would like to run a Macro so that if someone selects an item from a
dropdown box, a message will appear. Is this possible?
The dropdown box is already created.

Thanks for any help
 
S

Susan

you could try something like

Private Sub ComboBox1_Change()

if combobox1.value = "xyz" then
msgbox "You've chosen the wrong entry!"
end if

End Sub

although i don't know if you're using a listbox or a combobox, and if
it's from the control toolbox or the forms toolbar.
hope that gets you started.
:)
susan
 

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