samuelimtech
06-23-2016, 02:06 AM
Hi all,
first off thanks for any help.
im using the below code to loop through files but it automatically loops through the files alphabetically, is it possible to modify such that the loop is sorted by Date modified (earliest first)?
thanks
MyFile = Dir(MyPath)Do While MyFile <> ""
'do stuffs
MyFile = Dir
Loop
first off thanks for any help.
im using the below code to loop through files but it automatically loops through the files alphabetically, is it possible to modify such that the loop is sorted by Date modified (earliest first)?
thanks
MyFile = Dir(MyPath)Do While MyFile <> ""
'do stuffs
MyFile = Dir
Loop