ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I get A ComboBox to execute (https://www.excelbanter.com/excel-programming/343157-how-do-i-get-combobox-execute.html)

James

How do I get A ComboBox to execute
 
I am trying to get a macro/function to execute once a selection is made in
the combobox. So far I have had no luck finding out how to do this.

Tom Ogilvy

How do I get A ComboBox to execute
 
You want to use the Click event if it is an ActiveX combobox from the
control toolbox toolbar.

in design mode (if on a worksheet) or in the VBE, double click on it to get
to the click event.

If from the forms toolbar, right click on it and select assign a macro


If produced by the List Option in data validation, then if xl2000 or later,
use the Change event.
See Chip Pearson's page on Events
http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy


"James" wrote in message
...
I am trying to get a macro/function to execute once a selection is made in
the combobox. So far I have had no luck finding out how to do this.





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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com