PC Review


Reply
Thread Tools Rate Thread

3 combobox.values to one cell

 
 
Axel
Guest
Posts: n/a
 
      8th Jul 2007


Is it possible to get the value from three comboboxes in to one cell
Combobox1 Combobox2 Combobox3
1 1/16 HWDP
2 1/8 DC
3 3/16
4 1/4
5 5/16
6 3/8
7 7/16
8 1/2
9 9/16
10 5/8
11 11/16
12 3/4
13/16
7/8
15/16
I wonder if it's possible to write a code who can take the selected
values from the 3 comboboxes (with for example a commandbutton), and
paste the values i to one cell.
Or if it any other way to do i
Gratfull for all help!

Axel

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      8th Jul 2007
Something like this maybe...

Private Sub CommandButton1_Click()
Range("A1").Value = ComboBox1.Text & "-" & _
ComboBox2.Text & " " & _
ComboBox3.Text
End Sub

where you choose the cell you want filled in.

Rick


"Axel" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>
>
> Is it possible to get the value from three comboboxes in to one cell
> Combobox1 Combobox2 Combobox3
> 1 1/16 HWDP
> 2 1/8 DC
> 3 3/16
> 4 1/4
> 5 5/16
> 6 3/8
> 7 7/16
> 8 1/2
> 9 9/16
> 10 5/8
> 11 11/16
> 12 3/4
> 13/16
> 7/8
> 15/16
> I wonder if it's possible to write a code who can take the selected
> values from the 3 comboboxes (with for example a commandbutton), and
> paste the values i to one cell.
> Or if it any other way to do i
> Gratfull for all help!
>
> Axel
>
> *** Sent via Developersdex http://www.developersdex.com ***


 
Reply With Quote
 
Axel
Guest
Posts: n/a
 
      8th Jul 2007


You are a genius Rick!
Works perfekt
Thank you.

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fill cell with two combobox values? AA Arens Microsoft Excel Discussion 0 27th Sep 2010 12:39 PM
Add Values in a comma separated cell to combobox k3holdings@gmail.com Microsoft Excel Programming 2 2nd Dec 2008 02:18 PM
Howto make Combobox requery based on dependant combobox values Shane Microsoft Access Form Coding 1 22nd Apr 2008 09:14 AM
Fill values into a listbox matching selected values from a combobox Jon Microsoft Excel Programming 4 25th Jan 2005 04:25 PM
Values contained in value list of second combobox based on value selected in first combobox. Anthony Microsoft Access Forms 16 6th Mar 2004 04:07 AM


Features
 

Advertising
 

Newsgroups
 


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