Hi
I'm using this code to get subfolders but i got them arranged by modify time
How can i make them arrange by name
"Changing folder sort type form windows explorer makes no change"


VB Code:
  1. Dim FS As New FileSystemObject
  2.     Dim FSfolder As Folder
  3.     Dim subfolder As Folder
  4.     Dim i As Integer
  5.    
  6.     Set FSfolder = FS.GetFolder(progpath + "data\")
  7.    
  8.     ReDim installed(FSfolder.SubFolders.Count - 1)
  9.    
  10.     i = 0
  11.     For Each subfolder In FSfolder.SubFolders
  12.         DoEvents
  13.         installed(i) = subfolder.Name
  14.         i = i + 1
  15.     Next subfolder
  16.     Set FSfolder = Nothing