Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, I have a prepared a Userform with many text boxes to retrive my data in userform from worksheet by using a Combobox. my combobox is linked to Column B, Range is B4:B100. and I have a List of Material in B column, but when I Run userform I could not see all the list by Alphabetically. My combobox should show all records alphabetically. can anyone help me in this regard. COLUMN "B" Contains the following: --------------------- Water Heaters 300 W Heating Elements 250 W Muslim Shower Laundry Tumbler Yellow Paint Blue Paint Squash Tape AHU Filter Fax Machine Bearing Brass Holder ETC.... Private Sub Userform_activate() ComboBox1.SetFocus ComboBox1.RowSource = "B4:B100" End Sub Pls give me any Idea to sort my combobox A to Z. Thanks in Advance. Syed shahzad zafar Madinah - KSA. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can't you just to a Data/Sort on B4:B100 from the worksheet? If the list is
in sorted order on the sheet, then the RowSource assignment will put them into the ComboBox in that sorted order. Rick wrote in message ups.com... Hi, I have a prepared a Userform with many text boxes to retrive my data in userform from worksheet by using a Combobox. my combobox is linked to Column B, Range is B4:B100. and I have a List of Material in B column, but when I Run userform I could not see all the list by Alphabetically. My combobox should show all records alphabetically. can anyone help me in this regard. COLUMN "B" Contains the following: --------------------- Water Heaters 300 W Heating Elements 250 W Muslim Shower Laundry Tumbler Yellow Paint Blue Paint Squash Tape AHU Filter Fax Machine Bearing Brass Holder ETC.... Private Sub Userform_activate() ComboBox1.SetFocus ComboBox1.RowSource = "B4:B100" End Sub Pls give me any Idea to sort my combobox A to Z. Thanks in Advance. Syed shahzad zafar Madinah - KSA. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sort the source data if you want it sorted in the Combo.
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) wrote in message ups.com... Hi, I have a prepared a Userform with many text boxes to retrive my data in userform from worksheet by using a Combobox. my combobox is linked to Column B, Range is B4:B100. and I have a List of Material in B column, but when I Run userform I could not see all the list by Alphabetically. My combobox should show all records alphabetically. can anyone help me in this regard. COLUMN "B" Contains the following: --------------------- Water Heaters 300 W Heating Elements 250 W Muslim Shower Laundry Tumbler Yellow Paint Blue Paint Squash Tape AHU Filter Fax Machine Bearing Brass Holder ETC.... Private Sub Userform_activate() ComboBox1.SetFocus ComboBox1.RowSource = "B4:B100" End Sub Pls give me any Idea to sort my combobox A to Z. Thanks in Advance. Syed shahzad zafar Madinah - KSA. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you have a reason not to sort the worksheets, you can use this method by
John Walkenbach. You wold remove the RowSource command you show: http://www.j-walk.com/ss/excel/tips/tip47.htm Breaking the rowsource may require you to change the code you currently use to populate your textboxes. -- Regards, Tom Ogilvy " wrote: Hi, I have a prepared a Userform with many text boxes to retrive my data in userform from worksheet by using a Combobox. my combobox is linked to Column B, Range is B4:B100. and I have a List of Material in B column, but when I Run userform I could not see all the list by Alphabetically. My combobox should show all records alphabetically. can anyone help me in this regard. COLUMN "B" Contains the following: --------------------- Water Heaters 300 W Heating Elements 250 W Muslim Shower Laundry Tumbler Yellow Paint Blue Paint Squash Tape AHU Filter Fax Machine Bearing Brass Holder ETC.... Private Sub Userform_activate() ComboBox1.SetFocus ComboBox1.RowSource = "B4:B100" End Sub Pls give me any Idea to sort my combobox A to Z. Thanks in Advance. Syed shahzad zafar Madinah - KSA. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Retrive Records in UserForm and Edit - from shahzad | Excel Programming | |||
Retrive Data in Userform [from Shahzad] | Excel Programming | |||
Combobox items determined by the selection in another combobox | Excel Programming | |||
how to add items to combobox | Excel Programming | |||
ComboBox items | Excel Programming |