Hi
I'm looking to delete PDF's in a directory, I'm using a FileListBox which displays all the files.
Dim iCnt As Integer
For iCnt = 0 To Me.File1.ListCount - 1
If Me.File1.Selected(iCnt) Then
Kill Me.File1.FileName
MsgBox Me.File1.List(iCnt)
End If
Next
Can anyone see where i'm going wrong, it displays a Run Time error 53 File not found
Thanks in advance
I'm looking to delete PDF's in a directory, I'm using a FileListBox which displays all the files.
Dim iCnt As Integer
For iCnt = 0 To Me.File1.ListCount - 1
If Me.File1.Selected(iCnt) Then
Kill Me.File1.FileName
MsgBox Me.File1.List(iCnt)
End If
Next
Can anyone see where i'm going wrong, it displays a Run Time error 53 File not found
Thanks in advance