Hallo
In de volgende module wil ik controleren of een bestand ouder is dan een ander. Ik kom er echter niet uit waarom het niet werkt.
kan iemand helpen?
Sub controle()
' Datumcontrole
Dim fileA As String
Dim fileB As String
fileA = "C:\Rap\Archief\Graad2.xls"
fileB = "C:\Rap\Gr2\Graad2.xls"
If fileA.DateLastModified > fileB.DateLastModified Then
MsgBox "OK"
Else
MsgBox "niet OK"
End If
End Sub
Bedankt voo alle hulp