FileSystemObject Folder Sort Issue

S

Spike

I have a problem. It can code around it and do a little sort myself, but the
problem did not exist previously.

Using the FSO, i have a loop that pretty much does the following...

---------
For Each tmpFolder In MyFiles.GetFolder(tmpTestPath).SubFolders
x = tmpFolder.name
next tmpFolder
--------

The folders it is reading are labeled 01-16. The folders are created in
succession and all the timestamps are in order. Until recently, using this
method would access each folder from 01 to 16 in order, which is necessary
for a report writer, but now it does not seems to switch up the order in
which it finds the folders. The mixed up order it reads them in is
repeatable, so it leads me to believe that something has changed. Does anyone
have any idea what would have changed in windows/office/file system/anything
to cause this? It is quite baffling. Hopefully there is an easy answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top