![]() |
Using Form Combobox in VBA Excel
Hi,
On my spreadsheet, I have 1 combobox 1 list and 1 button I have added these controls without any coding, just by using Form Toolbox (right click on the excel toolbar) when i click on the button it should add the selected value from combobox to the list box. Can i get any help on this please. Thanking in anticipation. Vipul |
Using Form Combobox in VBA Excel
Private Sub CommandButton1_Click()
ListBox1.AddItem ComboBox1.Value End Sub "Vipul" wrote: Hi, On my spreadsheet, I have 1 combobox 1 list and 1 button I have added these controls without any coding, just by using Form Toolbox (right click on the excel toolbar) when i click on the button it should add the selected value from combobox to the list box. Can i get any help on this please. Thanking in anticipation. Vipul |
Using Form Combobox in VBA Excel
hello Kent
thanks for your reply. i have tried putting the code that you mentioned before, but the problem is i m getting error message "Object Required" the code doesnt even show the list of properties and methods when i put a dot(.) after the name of combobox or listbox. i m just stuck there. hope to get your reply again on this. thanking you again. b bye. "Kent Prokopy" wrote: Private Sub CommandButton1_Click() ListBox1.AddItem ComboBox1.Value End Sub "Vipul" wrote: Hi, On my spreadsheet, I have 1 combobox 1 list and 1 button I have added these controls without any coding, just by using Form Toolbox (right click on the excel toolbar) when i click on the button it should add the selected value from combobox to the list box. Can i get any help on this please. Thanking in anticipation. Vipul |
All times are GMT +1. The time now is 01:54 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com