Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying a file using VBA and Renaming it.

Status
Not open for further replies.

MikeUK

Programmer
Sep 7, 2001
5
GB
I need to find a piece of VBA code that copies a file and then can rename the copied file. Has anyone got any ideas?

thanxs.
 
Use the FileCopy method:
Code:
FileCopy "C:\temp\old.txt", "C:\temp\new.txt"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top