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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Copy - Variable name 1

Status
Not open for further replies.

Trudye

Programmer
Sep 4, 2001
932
US

I would like to copy a file from one folder to anoher one, I have done it before using .bat. However this time the filename changes daily.

Is there a way to do it in VBA?

Thanx,
Trudye
 
Have a look at the Dir function and the FileCopy instruction.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanx again PHV you save my bacon again. Sorry it took me sooo long to get back to you but this project was back burnered for a minute.

Be well,
Trudye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top