ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   macro & combobox (https://www.excelbanter.com/excel-programming/280883-macro-combobox.html)

pandino

macro & combobox
 
Hello,
I have a worksheet containing some data in 1st column. In
1st cell of 2nd column I have a combobox (the input range
is on a different sheet in same workbook). I'd like to
fill active cell (selected from remaining cells of 2nd
column) chosing an item from this combobox. How should I
make a macro to do this?
Thanks for support!

Tom Ogilvy

macro & combobox
 
for an activeX combobox:
Private Sub Combobox1_Click()
ActiveCell.Value = Combobox1.Value
End Sub

There are three types of comboboxes - you need to say which type. If Data
validation, it doesn't work that way.

--
Regards,
Tom Ogilvy


"pandino" wrote in message
...
Hello,
I have a worksheet containing some data in 1st column. In
1st cell of 2nd column I have a combobox (the input range
is on a different sheet in same workbook). I'd like to
fill active cell (selected from remaining cells of 2nd
column) chosing an item from this combobox. How should I
make a macro to do this?
Thanks for support!





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

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