Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default 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

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
Form Help - ComboBox - VBA jlclyde Excel Discussion (Misc queries) 5 January 13th 09 08:20 PM
read xml and fill valuesin excel form combobox born2achieve Excel Programming 5 January 7th 08 05:28 PM
Adding to excel user form combobox Gimp Excel Programming 3 January 26th 07 05:02 PM
Can you linke a ComboBox in a Form MESTRELLA29[_2_] Excel Programming 3 June 1st 05 12:22 AM
Excel 2000 VBA Form Combobox value Matt. Excel Programming 2 July 25th 03 06:37 PM


All times are GMT +1. The time now is 02:06 PM.

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"