Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,117
Default dropdown box item to display a message

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


On Nov 19, 4:18*am, grocottg
wrote:
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Form with dropdown item Gene Augustin Excel Discussion (Misc queries) 0 February 18th 09 06:35 PM
Dropdown box display only data dependent on another dropdown box? Chris Excel Worksheet Functions 8 August 5th 08 05:01 PM
How to display the first Item in a combobox as the default item Nigel Excel Programming 2 December 8th 06 10:21 PM
How to display the first Item in a combobox as the default item Jim Cone Excel Programming 0 December 8th 06 06:42 PM
How can I set up to chose more than 1 item from a dropdown list (. microchick Excel Discussion (Misc queries) 4 April 7th 05 06:59 PM


All times are GMT +1. The time now is 03:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"