Computing.Net > Forums > Office Software > Excel listbox list transfer to shee

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel listbox list transfer to shee

Reply to Message Icon

Name: MarkyMark
Date: February 16, 2009 at 11:35:39 Pacific
OS: Windows XP
Subcategory: Microsoft Office
Comment:

Hello,

I'd like to excel to transfer items = list of names from my userform listbox to specific range in excel sheet e.g A1:K1 and sort the names alfabetically. I'd also like excel to remove a name from the range when removed from listbox.

Help is greatly appreciated. So for I've got this...

Regards, Mark

I assume that this should be columns instead of rows. I've tried it but can't get it to work...

Private Sub OKButton_Click()
Dim LastRow As Long
LastRow = Range("A65536").End(xlUp).row + 1
Range("A" & LastRow).Value = ListBox2.Text

Unload Me

End Sub
--------
I assume that this should be columns instead of rows

Sub ShowDialog()
Dim row As Integer
UserForm1.ListBox2.RowSource = ""

' Add some items to the ListBox
For row = 1 To 42
UserForm1.ListBox2.AddItem Sheets("Sheet1").Cells(row, 1)
Next row
UserForm1.Show
End Sub



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel listbox list transfer to shee

Excel: dropdown list question www.computing.net/answers/office/excel-dropdown-list-question/5114.html

Excel Merge to Word Changes Dates www.computing.net/answers/office/excel-merge-to-word-changes-dates/7906.html

Excel Stock List www.computing.net/answers/office/excel-stock-list/5396.html