Hi,
Thanks for your reply but it is not getting the desired result.
Pl see attached files.
Folder List is what is source structure of the Folder
File list is a sample of file in the source folder
Destination Folder shows the Folder which does not have A E etc
Your code requires A, E etc to be in the destination then it copies the 
files from source to Destination.

As you can see files from the Source should directly go into the respective 
folders in the destination.
Hope it is clear now.
Regards.
Nasir


On Monday, May 26, 2014 10:21:55 AM UTC+4, Nasir Khan wrote:
>
> Hello All,
>
> I have lots of folder in the path C:\Libraries\Documents\
>
> Viz: Folder A,  E, H, L, P etc
>
> Each folder has many workbooks where the workbook names has the folder 
> Prefix 
>
> Eg. Folder A will have many workbooks with name xxx-xxx-*A####*-xx 
>      xxx-xxx-*A????-*xx and so on
>
>       Folder E will have workbooks with the name xxx-xxx-*Exxxx*-xx    
>         xxx-xxx-*E????-*xx and so on
>
>       Folder H will have workbooks with the name xxx-xxx-*Hxxxx*-xx 
>          xxx-xxx-*H????-*xx and so on
>
> There are many folders like this.
>
>
> In a separate Path viz C:\Myfolders\  I have all the folders eg *Axxxx*, 
> *A????,* *Exxxx*, *E????,* *Hxxxx, H????* etc which are currently empty.
>
> I need a macro to run through the Path C:\Libraries\Documents\
>
> and copy the workbooks accordingly to the folder name found in the 
> workbook name
>
> Eg: xxx-xxx-*Axxxx*-xx will be copied to Folder *Axxxx* and xxx-xxx-
> *A????*-xx to be copied to Folder *A????*
>
>      xxx-xxx-*Exxxx*-xx will be copied to Folder *Exxxx* and xxx-xxx-
> *E????*-xx to be copied to Folder *E????*
>
> and so on.
>
>
> Any help would be greatly appreciated as I do this manually now.
>
>
> TIA
>
>
> Nasir
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

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) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to