How do you rename files? I.e. rename C:\blah.txt to C:\blah.txt2
Printable View
How do you rename files? I.e. rename C:\blah.txt to C:\blah.txt2
Code:Name "C:\TheFile.txt" As "C:\TheFile2.txt"
Use the Name statement.
Code:Name "C:\blah.txt" As "C:\blah.txt2"
CBV..
do this
dim Newname as variant
dim OldName as variant
NewName = "C:\Blahblah"
OldName = "A:\BlohBloh"
'Copy this file from A: to C: under a different name
Name OldName as NewName
Quick answer was what u wanted
That should work
Let us know otherwise