Login | |
|
 |
RE: rename xls in a new folder and keep existing xls files - 11/5/2007 4:16:51 PM
|
|
 |
|
| |
sheepz
Posts: 247
Score: 2
Joined: 3/17/2006
From: Riverside the 909s
Status: offline
|
the function "FSO.MoveFile" is FSO's way of renaming a file. it renames the original file, does not delete it. that's why you dont see the original file any more afer it's been "FSO.movefile." what your looking for is "FSO.CopyFile" this will copy the file and leave original intact. change this: objFSO.MoveFile objFile.Path, strcurrentfolder & NewFileName to: objFSO.CopyFile objFile.Path, strcurrentfolder & NewFileName
|
|
| |
|
|
|
|
|