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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top