Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm have a worksheet with lots of tabs in it. I'm using the code below to populate a listbox with all the sheetnames, however I would like the results sorted in alphabetal order. Any ideas would be much appreciated. Thanks! Sub PopulateListbox() ListBox1.Clear For i = 1 To Sheets.Count ListBox1.AddItem Sheets(i).Name Next End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi D,
See Jojn Walkenbach at: http://j-walk.com:80/ss/excel/tips/tip47.htm --- Regards, Norman "DN" wrote in message ... Hi, I'm have a worksheet with lots of tabs in it. I'm using the code below to populate a listbox with all the sheetnames, however I would like the results sorted in alphabetal order. Any ideas would be much appreciated. Thanks! Sub PopulateListbox() ListBox1.Clear For i = 1 To Sheets.Count ListBox1.AddItem Sheets(i).Name Next End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
userform listbox cannot get listbox.value to transfer back to main sub | Excel Programming | |||
sorting a listbox in a user form | Excel Programming | |||
VBA: Creating listbox similar to the one in Pivot table (Listbox+Checkbox) | Excel Programming | |||
listbox.value not equal to listbox.list(listbox.listindex,0) | Excel Programming | |||
Sorting ListBox results or transposing ListBox values to other cells for sorting | Excel Programming |