Here is a sample of code I am using:
Code: Select all
' On Error GoTo Skip 'in the event of a permissions error; remarked out to test the message box below
If Err.Number <> 0 Then
MsgBox Err.Number
GoTo Skip
End If
Set objFile = objFSO.GetFile(.FoundFiles(x)) 'set the object to get it's properties; HERE is where it errors out.
Any suggestions would be appreciated.
Thanks,
John