hellfire45
Active Member
- Joined
- Jun 7, 2014
- Messages
- 464
I have a process that is processing and then moving about 60 files to an archive. For some reason this one file cannot be moved.
The files name is: (very long I know, can't help it)
1 2 2018 - xOpen Line Report for y and AVOCENT Product POs RMAs as of 01 02 2018 - x Backlog Report as of 01 02 2018 -y z
It's giving me Run-time error 76 Path Not Found. I find this weird since it does not give this error for any of the other 60 or so files. The file is not corrupt.
The relevant code I'm using is below:
strFileName is a variable that changes to reflect each file name in the folder. They are all .xlsx files
Thank you yet again friends.
The files name is: (very long I know, can't help it)
1 2 2018 - xOpen Line Report for y and AVOCENT Product POs RMAs as of 01 02 2018 - x Backlog Report as of 01 02 2018 -y z
It's giving me Run-time error 76 Path Not Found. I find this weird since it does not give this error for any of the other 60 or so files. The file is not corrupt.
The relevant code I'm using is below:
Code:
folderpath = "I:\ASM\All\CRT\Reporting\In Consolidation Process\Reports\"
If Dir("I:\ASM\All\CRT\Reporting\In Consolidation Process\Master Automation\Dated Report Archive\" & Format(Date, "yyyy-mm-dd"), vbDirectory) = "" Then
MkDir ("I:\ASM\All\CRT\Reporting\In Consolidation Process\Master Automation\Dated Report Archive\" & Format(Date, "yyyy-mm-dd") & "\")
End If
destinationpath = "I:\ASM\All\CRT\Reporting\In Consolidation Process\Master Automation\Dated Report Archive\" & Format(Date, "yyyy-mm-dd") & "\"
fso.MoveFile folderpath & strFileName, destinationpath & strFileName
strFileName is a variable that changes to reflect each file name in the folder. They are all .xlsx files
Thank you yet again friends.