How arrange files names based on modified date within folders and subfolders

Alaa mg

Active Member
Joined
May 29, 2021
Messages
378
Office Version
  1. 2019
Hello
I have files within folders and subfolders in this "C:\Users\Alaa\Desktop\FL"
the files will be PDF, for all of extensions for EXCEL
example :"C:\Users\Alaa\Desktop\FL\inv1.xlsx

"C:\Users\Alaa\Desktop\FL\rett\ACC.XLSM"
"C:\Users\Alaa\Desktop\FL\rett\files\proc.pdf"
so I want populate ITEMS in column A (1,2,...) , EXCEL files in column B, column C show modified dates for EXCEL files inside EXCEL FILES sheet , I want populate ITEMS in column A (1,2,...) , PDF files in column B, column C show modified dates for PDF files inside PDF FILES sheet.also hyperlink columns B for both two sheets to open file when click the cell in column B and sort From descending to ascending based on Modified date .
every time run the macro should replace files names for both two sheets.
in both two sheets will contain headers in row1(ITEM,FILES NAMES,MODIFIED DATE).
thanks
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
It can be done with VBA but why not use Power Query for that purpose? See a good tutorial by Mark Proctor here:
 
Upvote 0
thanks.
I don't prefer PQ and I don't used to use it , I no know how use .
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

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