Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default List Box Populating problem

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
.AddItem list and populating combobox with created list pallaver Excel Discussion (Misc queries) 8 June 27th 08 12:36 PM
Populating a List Box Eric Excel Programming 1 October 1st 07 04:23 PM
populating a list box enyaw Excel Programming 8 November 21st 06 03:30 PM
Populating dropdown list 2 with data depending upon what was selected in list 1 karambos Excel Programming 2 November 9th 04 05:32 PM
Problem with populating textboxes in relation to drop down list Ben Allen Excel Programming 0 April 26th 04 09:40 PM


All times are GMT +1. The time now is 07:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"