I have a macro which allows user to select number of files from folder and macro lists all the files(paths) in a sheet.
This works good only the problem is -
The order in which the files are written in excel sheet is not the same as that selected by user.
e.g.
Below code returns list of files in array fileToOpen.
fileToOpen = Application.GetOpenFilename(FileFilter:="Text Files (*.txt), *.txt", MultiSelect:=True)
Problem is the array is not sorted, is there any thing I can do so that the order will be preseved??
This works good only the problem is -
The order in which the files are written in excel sheet is not the same as that selected by user.
e.g.
Below code returns list of files in array fileToOpen.
fileToOpen = Application.GetOpenFilename(FileFilter:="Text Files (*.txt), *.txt", MultiSelect:=True)
Problem is the array is not sorted, is there any thing I can do so that the order will be preseved??