willow1985
Well-known Member
- Joined
- Jul 24, 2019
- Messages
- 921
- Office Version
- 365
- Platform
- Windows
I have been looking online but cannot find exactly what I am looking for and I hope someone can help me.
I am looking for a code that will copy a folder and all of its contents (including subfolders) to another folder/directory based on the below list.
Would anyone be able to assist me with this? I am not very good at these types of codes.
There will be at least 5000 directories with multiple files. It will be a large amount of data copied.
Thank you to anyone who can help!
I am looking for a code that will copy a folder and all of its contents (including subfolders) to another folder/directory based on the below list.
Would anyone be able to assist me with this? I am not very good at these types of codes.
There will be at least 5000 directories with multiple files. It will be a large amount of data copied.
Thank you to anyone who can help!
Book1 | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Original Directory | Folder (and contents) to Move | Original Directory with Folder | Destination Directory | Destination Folder | Destination Directory and Folder | ||
2 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\ | NCR 1431 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\NCR 1431 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0001 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0001 | ||
3 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\ | NCR 1432 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\NCR 1432 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0002 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0002 | ||
4 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\ | NCR 1433 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\NCR 1433 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0003 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0003 | ||
5 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\ | NCR 1434 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\NCR 1434 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0004 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0004 | ||
6 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\ | NCR 1435 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\NCR 1435 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0005 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0005 | ||
7 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\ | NCR 1436 | \\171.200.7.15\data\QT\Group\NCR\NCR Records 1101-Current\NCR 1436 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0006 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0006 | ||
8 | \\171.200.7.15\data\QT\Group\CC\CC Records\ | CC 1000 | \\171.200.7.15\data\QT\Group\CC\CC Records\CC 1000 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0007 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0007 | ||
9 | \\171.200.7.15\data\QT\Group\CC\CC Records\ | CC 1001 | \\171.200.7.15\data\QT\Group\CC\CC Records\CC 1001 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0008 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0008 | ||
10 | \\171.200.7.15\data\QT\Group\CC\CC Records\ | CC 1002 | \\171.200.7.15\data\QT\Group\CC\CC Records\CC 1002 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0009 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0009 | ||
11 | \\171.200.7.15\data\QT\Group\CC\CC Records\ | CC 1003 | \\171.200.7.15\data\QT\Group\CC\CC Records\CC 1003 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0010 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0010 | ||
12 | \\171.200.7.15\data\QT\Group\CAPA\CAPA Records\ | CAPA 900 | \\171.200.7.15\data\QT\Group\CAPA\CAPA Records\CAPA 900 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0011 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0011 | ||
13 | \\171.200.7.15\data\QT\Group\CAPA\CAPA Records\ | CAPA 901 | \\171.200.7.15\data\QT\Group\CAPA\CAPA Records\CAPA 901 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0012 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0012 | ||
14 | \\171.200.7.15\data\QT\Group\CAPA\CAPA Records\ | CAPA 902 | \\171.200.7.15\data\QT\Group\CAPA\CAPA Records\CAPA 902 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0013 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0013 | ||
15 | \\171.200.7.15\data\QT\Group\CAPA\CAPA Records\ | CAPA 903 | \\171.200.7.15\data\QT\Group\CAPA\CAPA Records\CAPA 903 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0014 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0014 | ||
16 | \\171.200.7.15\data\QT\Group\CAPA\CAPA Records\ | CAPA 904 | \\171.200.7.15\data\QT\Group\CAPA\CAPA Records\CAPA 904 | \\171.200.7.15\data\QT\Quality Log\Quality Records\ | Q0015 | \\171.200.7.15\data\QT\Quality Log\Quality Records\Q0015 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:C16,F2:F16 | C2 | =A2&B2 |