I must have gone drain bead.
I want the name of the first file in a folder. I know how to go through a folder.
For Each objFile In objFolder.Files
and get the name
Set objfile = objFSO.GetFile(log.txt)
but what if I do not know the name of the first file. Still learning the filesytemobject thing.
AJ
I want the name of the first file in a folder. I know how to go through a folder.
For Each objFile In objFolder.Files
and get the name
Set objfile = objFSO.GetFile(log.txt)
but what if I do not know the name of the first file. Still learning the filesytemobject thing.
AJ