Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ewing25,
See John Walkenbach's suggestion at: Filling a ListBox With Unique Items http://www.j-walk.com/ss/excel/tips/tip47.htm --- Regards. Norman "Ewing25" wrote in message ... Im trying to get the listbox to populate from column H in a worksheet named Expense. Here is the code i have already: Private Sub CommandButton1_Click() Set wks = Worksheets("Miles") lrA = wks.Cells(Rows.Count, 1).End(xlUp).Row lrB = wks.Cells(Rows.Count, 2).End(xlUp).Row wks.Range("A" & lrA + 1) = ListBox1.Text wks.Range("B" & lrA + 1) = TextBox1.Text TextBox1.Text = "" End Sub Private Sub CommandButton2_Click() Unload UserForm3 End Sub I cant figure out how to get it to populate without duplicates if soemone enters the same value twice. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
.AddItem list and populating combobox with created list | Excel Discussion (Misc queries) | |||
Populating a List Box | Excel Programming | |||
populating a list box | Excel Programming | |||
Populating dropdown list 2 with data depending upon what was selected in list 1 | Excel Programming | |||
Problem with populating textboxes in relation to drop down list | Excel Programming |