Is there a way in code to rename a file

J

John

I need to be able to create a txt file but then rename the
extension to something different after I create file. How
can you rename a file in code(file is always in the same
location).

Thanks,
John
 
P

PC Datasheet

Check the Name statement in the Help file.

Name oldpathname As newpathname
 
Top