PC Review


Reply
Thread Tools Rate Thread

Automate searching and then copying files to a folder using excel

 
 
SP
Guest
Posts: n/a
 
      21st May 2009
Hi

I am looking for a process that will optimize the time and effort.
I have an excel file which contains a list (1000) of file names in its
column "A".

These 1000 files are present in different folders under single folder on the
network drive.
My task is to search one by one files from the network and copy the same
into an output folder.

I understand his will take enormous time & effort to do it manually.

So, I am looking for an automation which can interface the MS excel file
with the windows searching and copying.

Appreciate your help.

Thanks

SP.

 
Reply With Quote
 
 
 
 
PJFry
Guest
Posts: n/a
 
      21st May 2009
How many folders are we talking about? And do you know what they are?
--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"SP" wrote:

> Hi
>
> I am looking for a process that will optimize the time and effort.
> I have an excel file which contains a list (1000) of file names in its
> column "A".
>
> These 1000 files are present in different folders under single folder on the
> network drive.
> My task is to search one by one files from the network and copy the same
> into an output folder.
>
> I understand his will take enormous time & effort to do it manually.
>
> So, I am looking for an automation which can interface the MS excel file
> with the windows searching and copying.
>
> Appreciate your help.
>
> Thanks
>
> SP.
>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      21st May 2009
You can use FileCopy in a loop (through the cells in A) and use the cell value in the code instead of a string

Sub Copy_One_File()
FileCopy "C:\Users\Ron\SourceFolder\Test.xls", "C:\Users\Ron\DestFolder\Test.xls"
End Sub

Or

Sub Move_Rename_One_File()
'You can change the path and file name
Name "C:\Users\Ron\SourceFolder\Test.xls" As "C:\Users\Ron\DestFolder\TestNew.xls"
End Sub

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"SP" <(E-Mail Removed)> wrote in message newsC006596-153D-428A-9244-(E-Mail Removed)...
> Hi
>
> I am looking for a process that will optimize the time and effort.
> I have an excel file which contains a list (1000) of file names in its
> column "A".
>
> These 1000 files are present in different folders under single folder on the
> network drive.
> My task is to search one by one files from the network and copy the same
> into an output folder.
>
> I understand his will take enormous time & effort to do it manually.
>
> So, I am looking for an automation which can interface the MS excel file
> with the windows searching and copying.
>
> Appreciate your help.
>
> Thanks
>
> SP.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel, Searching and copying info from another worksheet? mevans General Software 2 18th Sep 2010 11:12 AM
Possible to automate copying active cell in Excel, and pastingcontents into Search box of webpage Mike C Microsoft Excel Programming 0 10th Mar 2009 03:04 AM
Searching, moving, copying, etc files with ampersand ( & ) in filename ? Rob Stow Microsoft Windows 2000 4 27th May 2005 01:04 AM
automate copying files to folder =?Utf-8?B?YmlsbA==?= Windows XP General 1 29th Sep 2004 09:58 PM
Searching multiple files and copying text Marcelo P. Microsoft Excel Programming 0 23rd Jul 2004 08:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 AM.