Thanks Ashish,

But the program is not working , when I pick the source directory I
get an error saying "Permission Denied" and when you click on the
debugger the following line is highlighted in the code.
fso.Copyfile fil.Path, Sheets(1).Range("b1").Value

What I want from the program is as follows.
My source directory  is always going to be P:\from & my target is
going to be P:\to. I want the program to select all files that are 1
month old from P:\A and copy them into P:\B. Then I want the program
to verify if the files are copied and then once the verification is
complete than go back to  P:\from and delete the 1 month old files.

I dont want the user to be able to select the source and destination
directories etc. Just when they click on a button the program does the
above and gives a message when the operation is complete.

thanks for your time and effort.

On Nov 1, 2:56 am, ashish koul <koul.ash...@gmail.com> wrote:
> Hi Dave,
>
> try the attachment
>
>
>
>
>
> On Tue, Nov 1, 2011 at 1:00 AM, Dave <davidstev...@gmail.com> wrote:
> > Hi,
>
> > I need help with the following task. Thanks in advance
> > I am using MS Excel 2010.
>
> > I have two folders: A & B. I want to do the folllowing tasks
>
> > 1, Every month I want to copy all files that are 1 month old (these
> > are all .PDF files) from folder A to folder B.
> > 2, Then I want to verify if the files are copied correctly .
> > 3, Then once the copied files are verifiied I want to delete all the
> > original files from A.
>
> > It has to be a copy and not a move operation as my network privelages
> > get screwed up when I move the files.
>
> > Thanks ,
>
> > Dave
>
> > --
> > FORUM RULES (925+ members already BANNED for violation)
>
> > 1) Use concise, accurate thread titles. Poor thread titles, like Please
> > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> > will not get quick attention or may not be answered.
>
> > 2) Don't post a question in the thread of another member.
>
> > 3) Don't post questions regarding breaking or bypassing any security
> > measure.
>
> > 4) Acknowledge the responses you receive, good or bad.
>
> > 5)  Cross-promotion of, or links to, forums competitive to this forum in
> > signatures are prohibited.
>
> > NOTE  : Don't ever post personal or confidential data in a workbook. Forum
> > owners and members are not responsible for any loss.
>
> > ---------------------------------------------------------------------------­---------------------------
> > To post to this group, send email to excel-macros@googlegroups.com
>
> --
> *Regards*
> * *
> *Ashish Koul*
> *http://www.excelvbamacros.com/*
>
> P Before printing, think about the environment.
>
>  copy files from folder.xls
> 50KViewDownload- Hide quoted text -
>
> - Show quoted text -

-- 
FORUM RULES (925+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to