Use the FileSystemObject to gain access to files and their properties.
Dim objFSO As New FileSystemObject
Dim objFolder As Folder
Dim objFile As File
Set objFolder = objFSO.GetFolder(sFilePath)
For Each objFile In objFolder.Files
sFileName = objFile.Name
dCreateDate = objFile.DateCreated
dModifiedDate = objFile.ModifiedDate
Next
NOTE: The file dates are read-only properties.
"Peter" <ga*****@SPAMblueyonder.co.uk> wrote in message
news:w4**************@fe3.news.blueyonder.co.uk...
Hi
I'm looking for a way to extract a file name and file create date and then
replace them after modifying them.
I'd be grateful for any help.
Peter
To err is human but it takes a computer to really mess things up!