![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 33
|
Does any one have a routine for copying a folder and its contents, including subfolders & their contents, from one place (i.e. drive) to another?
I imagine that this will require clever use of the DIR function, but my poor little brain can't quite get round it! Thanks |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: 20 Minutes outside Manhattan
Posts: 64
|
Do you want to do this from within a spreadsheet or do you want to do this while the workbook is closed?
[ This Message was edited by: Q on 2002-05-22 06:00 ] |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 33
|
Thanks Q
I want to do this with a VBA routine in a workbook. If vba had this function it would go something like this: Sub copymyfolder CopyFolder "C:myfolder","D:myfolder",SubFolders:=True End sub |
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 33
|
Q
Re my last - somehow double backslashes got into the paths! |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|