ComboBox question

  • Thread starter Patrick C. Simonds
  • Start date
P

Patrick C. Simonds

I have a combo box which displays 2 columns. is there any way to have the
value in column 1 placed in rng(1, 43) and the value in column 2 placed in
rng(1, 42).

My current code (below) the value of column 1 where I want it, but I do not
know how to get the value in column 2 where I want if (if it is even
possible to do what I want).



Private Sub ComboBox1_Change()
'Work Code 1
Dim rng
Set rng = Cells(ActiveCell.Row, 1)
rng(1, 43).Value = ComboBox1.Text
End Sub
 
G

Gary Keramidas

doesn't something like this work?

Range("c12") = Me.ComboBox1.Column(0)
Range("c13") = Me.ComboBox1.Column(1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel VBA 1
Clear a range of data 4
Paste TextBox value to worksheet with specific format 1
Create a public variable 4
Dim statement 8
Hide a TextBox 1
Date value 7
Range into ListBox excluding blanks 6

Top