Hi,
I have the following code which moves files from one location to another.. If a file doesn't exist, I would the code to carry on to the next file rather give an error message "File does not exist"
appreciate any guidance you can give.
I have the following code which moves files from one location to another.. If a file doesn't exist, I would the code to carry on to the next file rather give an error message "File does not exist"
appreciate any guidance you can give.
Code:
Sub everythingexcCRO()
Kill "\\retail\dfsroot$\Group Change\Database use only\02-01 Logistics.xlsm"
FileCopy Source:="\\retail\dfsroot$\Group Change\02-01 Logistics\02-01 Logistics.xlsm", Destination:="\\retail\dfsroot$\Group Change\02-01 Logistics.xlsm"
'logistics
Kill "\\retail\dfsroot$\Group Change\Database use only\03-01 Fulfilment.xlsm"
FileCopy Source:="\\retail\dfsroot$\Group Change\03-01 Fulfilment.xlsm", Destination:="\\retail\dfsroot$\Group Change\Database use only\03-01 Fulfilment.xlsm"
'fulfillment