filter files names based on extensions files & month in folders , sunbfolders

Hasson

Active Member
Joined
Apr 8, 2021
Messages
390
Office Version
  1. 2016
Platform
  1. Windows
hello
I seek for macro to create the whole data as what shows in the pictures . my directory is D:\FOLDER . This directory contains many folders and subfolders and different extensions files .
this is the orginal data

FOLDERS.xlsm
ABCDEFGHI
1extensionsmonth
2
3
4
5
6
7
8
9
10
11
12
SHEET3

when selet fro D2 should create the whole data by brings the names folders and subfolders and brings the files under folder name & subfolder name with create the hyperlink whether folders or files names to open it
FOLDERS.xlsm
ABCDE
1extensionsmonth
2PDF
3FOLDER NAME
4INVOICES
5ITEMFILE NAMEMODIFIED DATECREATED DATEPATH
61INV-A10001/05/202120/07/2021D:\FOLDER\INVOICES
72INV-A10102/05/202120/07/2021D:\FOLDER\INVOICES
83INV-A10203/06/202120/07/2021D:\FOLDER\INVOICES
94INV-A10304/06/202120/07/2021D:\FOLDER\INVOICES
10
11SUBFOLDER NAME
12REPORT
13ITEMFILE NAMEMODIFIED DATECREATED DATEPATH
141REP-20001/05/202120/07/2021D:\FOLDER\INVOICES\REPORT
152REP-20102/05/202120/07/2021D:\FOLDER\INVOICES\REPORT
163REP-20203/06/202120/07/2021D:\FOLDER\INVOICES\REPORT
174REP-20304/06/202120/07/2021D:\FOLDER\INVOICES\REPORT
SHEET3


and if select D2,E2 together then should brings the files based on modified date
FOLDERS.xlsm
ABCDE
1extensionsmonth
2PDFMAY
3FOLDER NAME
4INVOICES
5ITEMFILE NAMEMODIFIED DATECREATED DATEPATH
61INV-A10001/05/202120/07/2021D:\FOLDER\INVOICES
72INV-A10102/05/202120/07/2021D:\FOLDER\INVOICES
8
9SUBFOLDER NAME
10REPORT
11ITEMFILE NAMEMODIFIED DATECREATED DATEPATH
121REP-20001/05/202120/07/2021D:\FOLDER\INVOICES\REPORT
132REP-20102/05/202120/07/2021D:\FOLDER\INVOICES\REPORT
SHEET3

thanks in advance
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,215,106
Messages
6,123,123
Members
449,096
Latest member
provoking

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top