Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
Using 'FileSystemObject' i would like to copy all the Excel files from the sub-folders to another directory but restricting those sub folders to one level. Additionally l would like to exclude some specifically named sub-folders at level one. Example: C:\MyName\MyFiles\ThisMonth C:\MyName\MyFiles\ThisMonth\Sub-Folder1 C:\MyName\MyFiles\ThisMonth\Sub-Folder2\more folders C:\MyName\MyFiles\ThisMonth\Sub-Folder3\more folders C:\MyName\MyFiles\ThisMonth\Sub-FolderIgnore1 C:\MyName\MyFiles\ThisMonth\Sub-FolderIgnore2 Using the directory structure above as an example l would like to copy the Excel files that exist in Sub-Folder1, Sub-Folder2 & Sub-Folder3 only. Any example code gratefully appreciated. Regards Michael |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to open same name files in different folders in Excel? | Excel Discussion (Misc queries) | |||
Can anyone help me Create Excel list of files in windows folders | Excel Worksheet Functions | |||
Moving files between folders using VBA in Excel | Excel Programming | |||
Application.FileSearch on only one level of sub folders | Excel Programming | |||
Open Excel files/folders | Excel Discussion (Misc queries) |