Multi-Column Combo Box

  • Thread starter Thread starter Don Lloyd
  • Start date Start date
D

Don Lloyd

Hi all,

On a worksheet I have a comobox that displays four columns of data from
another sheet.
How would I code the Combobox Change change to transfer the 4 columns in the
combobox to 4 columns on the spreadsheet ?

At the moment I'm getting nowhere !

Thanks and regards,
Don
 
Private Sub ComboBox1_Change()

Dim index As Long
Dim col As Long
With ComboBox1
index = .ListIndex
For col = 0 To .ColumnCount - 1
Selection.Offset(0, col).Value = .List(index, col)
Next
End With
Selection.Activate
End Sub
 

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

Back
Top