Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Initialize Userform, Populate Listbox, Dynamic RowSource?

Greetings,
I'll try to explain this with my limited technical language.

Scenerio:
Worksheet column A has all part names followed by dimension(Angle 1 x 1 x
1/8...
Angle 1 x 1 x 3/16..Channel 4 x 4....Channel 6 x 6....). It is ever Growing
as new custom parts and sizes are created and added. How can i populate a
listbox on a userform to only show all parts that begin with "angle", or all
parts that begin with "channel" , etc.

Thank you for your time and help.
Ron.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Initialize Userform, Populate Listbox, Dynamic RowSource?

Hi Ron

Put in the userform's module:

Private Sub UserForm_Initialize()
Dim R As Long
For R = 1 To Sheets(1).Cells(65000, 1).End(xlUp).Row
If Sheets(1).Cells(R, 1).Value Like "Angle*" Then _
ListBox1.AddItem Sheets(1).Cells(R, 1).Value
Next
End Sub

HTH. Best wishes Harald

"RShow" skrev i melding
ink.net...
Greetings,
I'll try to explain this with my limited technical language.

Scenerio:
Worksheet column A has all part names followed by dimension(Angle 1 x 1 x
1/8...
Angle 1 x 1 x 3/16..Channel 4 x 4....Channel 6 x 6....). It is ever

Growing
as new custom parts and sizes are created and added. How can i populate a
listbox on a userform to only show all parts that begin with "angle", or

all
parts that begin with "channel" , etc.

Thank you for your time and help.
Ron.





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
Listbox rowsource on Userform Wendy Excel Discussion (Misc queries) 6 February 28th 08 05:46 PM
???Help??? Userform.Listbox.rowsource = ??? Steve Sparti Excel Discussion (Misc queries) 0 March 1st 06 09:44 PM
RowSource in ListBox aet-inc[_2_] Excel Programming 1 December 3rd 03 12:41 AM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon[_2_] Excel Programming 4 September 25th 03 06:45 PM
listbox rowsource Christy[_2_] Excel Programming 4 September 20th 03 11:44 PM


All times are GMT +1. The time now is 02:03 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"