Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I use this code to find the last file. Set fso = New Scripting.FileSystemObject For Each ThisFile In fso.GetFolder(sICAPPathName).Files If ThisFile.Name Like "ICAP_FPC*.*" Then Call GetICAPDate If LatestFile Is Nothing And dThisFilesDate < dLastFileDate Then Set LatestFile = ThisFile dLastUpdated = dThisFilesDate ElseIf dThisFilesDate dLastUpdated _ And dThisFilesDate < dLastFileDate Then Set LatestFile = ThisFile dLastUpdated = dThisFilesDate End If End If Next I have to use a sub routine to interpret the date as the date can be in several different formats. I would like to read the files in update order as this gets them in file name order, how do I change it to do that. Thanks MarkS |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
file search or search files | Excel Discussion (Misc queries) | |||
Turning a text file name into a search and linking the file as a hyperlink | Excel Discussion (Misc queries) | |||
File Search | Excel Programming | |||
File Search | Excel Programming | |||
Macro to search from one file & place on another file. | Excel Programming |