ListBox List into Range

  • Thread starter Thread starter K
  • Start date Start date
K

K

Hi all, I have items list in ListBox1 and I want macro on a button to
get that list in column A from Range A2 to down. Please can anyone
can help
 
Private Sub CommandButton1_Click()
For i = 0 To UBound(ListBox1.List)
ActiveSheet.Range("A" & i + 2) = Me.ListBox1.List(i)
Next
End Sub
 
Private Sub CommandButton1_Click()
    For i = 0 To UBound(ListBox1.List)
         ActiveSheet.Range("A" & i + 2) = Me.ListBox1.List(i)
    Next
End Sub





- Show quoted text -

Thanks
 

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