Feed cells from values of a listbox

crackwood01

New Member
Joined
Mar 16, 2016
Messages
43
Hi forum!

I would like to fill cells from column DC with the values clicked in a listbox multi.

here is my code so far

HTML:
Dim i As Long
For i = 0 To Me.ListBox1.ListCount
Worksheets("Clients").Cells("DC4").Value = ListBox1.Value
Next

How can this be possible, plus it needs to fill going down

Dc4
Dc5

ect

sorry for my english
 
Last edited:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
How about
Code:
   Dim i As Long, j As Long
   j = 3
   With Me.ListBox1
      For i = 0 To .ListCount - 1
         If .Selected(i) Then
            j = j + 1
            Worksheets("output").Range("DC" & j).Value = .List(i)
         End If
      Next i
   End With
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top