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

how to move multiple files with same extension

Status
Not open for further replies.

stever1725

Technical User
Feb 12, 2009
13
US
I have written some code that imports all .xls files from C:\Import .... into access... creates a report that gets sent to management. Can anybody help me to now move these files from C:\Import... to C:\Import\Processed ?? i have tried quite a few different codes but cannot get them to move. any help would be appreciated. thanks steve
 
A starting point:
Code:
strFileName = "somename.xls"
Name "C:\Import\" & strFileName As "C:\Import\Processed\" & strFileName

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PHV, thanks for the pointer... i got it hammered out... i even got it to where it adds the date to each file. much thanks.
 
If you have not already done so, I suggest you move your files as you import them one at a time. This will prevent a file created mid process incorrectly being moved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top