+ Reply to Thread
Results 1 to 7 of 7

Sorting within an array, or in a combobox

Hybrid View

  1. #1
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Sorting within an array, or in a combobox

    Wonderful... thank you guys so much! Works like a charm!

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Sorting within an array, or in a combobox

    Why not using Excel ?

    Private Sub UserForm_Initialize()
      c00= Dir("\\corp.bloomberg.com\pn-dfs\global data\research-blaw-profiles\Common\Ask Bloomberg\Custom_Tools\DataSets\*.?*")
    
      Do Until c00=""
        c01=c01 & "|" & c00
        c00=dir
      Loop
      sn=split(mid(c01,2),"|")
    
      with sheets(1)
        .cells(1,200).resize(ubound(sn)+1)=application.transpose(sn)
        with .columns(200)
          .sort sheets(1).cells(1,200)
          combobox1.list=.specialcells(2).value
          .clearcontents
        end with
      end with
    End Sub



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1