CPH
asked on
Retrieve filenames from sub folder via macro
HI,
We need a solution to retrieve filenames from sub folders in macro for a comparison analysis.
Dir\SubDir\Filename
option to select the folders for comparison from D:\ and E:\
We need to break the path in the rows
Match folder/subfolder/filename in D: with folder/subfolder/filename in E:
reflect matched and not matched filenames
Thanks!
CPH
We need a solution to retrieve filenames from sub folders in macro for a comparison analysis.
Dir\SubDir\Filename
option to select the folders for comparison from D:\ and E:\
We need to break the path in the rows
Match folder/subfolder/filename in D: with folder/subfolder/filename in E:
reflect matched and not matched filenames
Thanks!
CPH
ASKER
Hi,
Thanks! i have applied the formula but could not retrieve filenames from sub folders.
secondly, need to split the path in rows
lets say main dir = Task1
sub folder =Folder 1
File name = image1
so the file path will be /task1/folder1/image1 ( need to break in rows as task1| folder1|image1)
after retrieving the files, need to compare both the path , if matching or mismatch
Thanks! i have applied the formula but could not retrieve filenames from sub folders.
secondly, need to split the path in rows
lets say main dir = Task1
sub folder =Folder 1
File name = image1
so the file path will be /task1/folder1/image1 ( need to break in rows as task1| folder1|image1)
after retrieving the files, need to compare both the path , if matching or mismatch
Hi CPH,
Please find attached, I did helped someone here sometime ago. Which will prompt you to select folder.
List-Folders---SubFolders_v2.xlsm
Please find attached, I did helped someone here sometime ago. Which will prompt you to select folder.
List-Folders---SubFolders_v2.xlsm
I have broke for D drive and E drive,
First click on List Folder D then click on List Folder E
You will get both the drive listing next to each other, then you can compare.
List-Folders---SubFolders_v3.xlsm
First click on List Folder D then click on List Folder E
You will get both the drive listing next to each other, then you can compare.
List-Folders---SubFolders_v3.xlsm
ASKER
Hi Shums,
Thanks!
I notice the information is retrieved quick, along with full path & subfolder ( need to retrieve the file available in subfolder) which will complete the first task.
Thanks!
CPH
Thanks!
I notice the information is retrieved quick, along with full path & subfolder ( need to retrieve the file available in subfolder) which will complete the first task.
Thanks!
CPH
ASKER
Hi Shums,
Sorry! did not see the second response. It is perfect. Probably remove date created|modified|link .
kindly add a formula to match between subfolder (column C & column J) with a button and the output in adjacent column.
Thanks!
CPH
Sorry! did not see the second response. It is perfect. Probably remove date created|modified|link .
kindly add a formula to match between subfolder (column C & column J) with a button and the output in adjacent column.
Thanks!
CPH
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Shums,
Thanks a Ton.... to Shums and Roy Cox for sharing your expertise. The requirement is complete.
Thanks!
Cheiro
Thanks a Ton.... to Shums and Roy Cox for sharing your expertise. The requirement is complete.
Thanks!
Cheiro
Hi Cheiro,
If solution provided serves your purpose, I would request you to please close this question.
If solution provided serves your purpose, I would request you to please close this question.
ASKER
Thanks! to Shums. I got a better solution.
ASKER
Hi Shums,
i wish to add one more request connected to the same requirement.
While retrieving the data from the folders, it happens to include Thumbs.db in excel which is not visible in the physical folders.
This actually creates a wrong analysis while comparing data. The output excel should exclude the Thumbs.db in the report.
Please assist on the same
Thanks!
CPH
i wish to add one more request connected to the same requirement.
While retrieving the data from the folders, it happens to include Thumbs.db in excel which is not visible in the physical folders.
This actually creates a wrong analysis while comparing data. The output excel should exclude the Thumbs.db in the report.
Please assist on the same
Thanks!
CPH
Open in new window