I get the following error message
Run-time error '2455' you entered invalid reference to the property FileSearch
'************** *************** *************** *************** *************** *************
Run-time error '2455' you entered invalid reference to the property FileSearch
'************** *************** *************** *************** *************** *************
Code:
Set fs = Application.FileSearch With fs ' Set search directory and file type to search for .LookIn = strFileLocation .FileName = strFileName ' Loop through found files and import If .Execute > 0 Then intNumFiles = .foundfiles.Count For i = 1 To .foundfiles.Count 'strFileName = Right(.foundfiles(i), 12)
Comment