I am trying to go through the files in a folder and rename them but I am getting the error "Run-Time Error 5: Invalid procedure call or argument" on this bit of code
can anybody explain this.
Thanks
Code:
Dim myFileSysObj As New FileSystemObject, myFile As File, myFolder As Folder ............... For Cnt = 1 To myFolder.Files.Count Step 1 -> Set myFile = myFileSysObj.GetFile(myFolder.Files.Item(Cnt)) Next Cnt .........
Thanks
Comment