Say I have 2 words in 2 text boxes, how can I make them display in the third textbox in alphebetical order?
Printable View
Say I have 2 words in 2 text boxes, how can I make them display in the third textbox in alphebetical order?
Why not just use a ListBox and set it to sorted instead of the third textbox?
Ok, how would I go about making it alphebetical order thats the part im stuck on.
A Listbox has the Sorted property, which you can set to TRUE. That will ALPHABETICALLY sort the Listbox automatically.
What do you mean by sorted? How does it sort it?
It sorts alphabetically automatically by setting the .Sorted property to True.
After you set it there is nothing else to do, thus, automatically.
I just tested it and it didn't work, I set it to true is there anything else to do?
Here is an example.
VB Code:
Option Explicit 'List1 Sorted property set to True Private Sub Form_Load() List1.AddItem "Test" List1.AddItem "VB Forumn" List1.AddItem "Classic VB" List1.AddItem "Alphabetical" End Sub
Thanks.
So you got it working now? :)
Yup :)