Hello Guys !
I need macro to create the headers in row1 based on matching folders names and brings all of files under headers based on matching folder name .
so in this directory "C:\Users\Ala-PC\Desktop\FILES" contains folder's name is report and the folder REPORT contains many folders and the folders contain different file extensions .
so what I want create the headers in row 1 based on on matching folder name and brings all of the files under headers and hyperlink to open any file where the folder and files are existed in folder report
for instance if I have folders names PURCHASE, SALES , STOCKS then the headers in row1 should be in columns A,B,C= PURCHASE, SALES , STOCKS and brings all of the files under header which is matched for folder name and if increase folders then should increase columns D,E ... and so on based on how many folders are existed in folder REPORT .
thanks
I need macro to create the headers in row1 based on matching folders names and brings all of files under headers based on matching folder name .
so in this directory "C:\Users\Ala-PC\Desktop\FILES" contains folder's name is report and the folder REPORT contains many folders and the folders contain different file extensions .
so what I want create the headers in row 1 based on on matching folder name and brings all of the files under headers and hyperlink to open any file where the folder and files are existed in folder report
for instance if I have folders names PURCHASE, SALES , STOCKS then the headers in row1 should be in columns A,B,C= PURCHASE, SALES , STOCKS and brings all of the files under header which is matched for folder name and if increase folders then should increase columns D,E ... and so on based on how many folders are existed in folder REPORT .
thanks