filter file names based on extensions and copy for each sheet name matched with extension

tubrak

Board Regular
Joined
May 30, 2021
Messages
216
Office Version
  1. 2019
Platform
  1. Windows
hi professional
i hope finding what I look for it . what I want filtering file names in folders and subfolders for this directory "C:\files" based on cell value in F3 the sheet name is file extension. it should match file extension in F3 with sheet name .if I write file extensions . then should filter and copy files names for each sheet based on extension type .
and should be each 30 files into three columns with hyperlink the files under header FILES and open and copy to the bottom for each 30 files are divided for each 10 individually
original data in sheet name "PDF" and so on for all extensions as show in the sheets .
q.JPG



EXPECTED RESULT
z.JPG


please don't forget match F3 with sheet name as mark by highlight color
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
I prefer second approach . First extract file names along with extension from a folder in excel apply and apply macro for it
You need to share excel file along with some sample data
 
Upvote 0
hi
actually I have macro bring the files from directory in three columns, but as you see needing macro to filter based on cell value F3 across multiple sheets .
 
Upvote 0

Forum statistics

Threads
1,215,844
Messages
6,127,252
Members
449,372
Latest member
charlottedv

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