bring sub directory from main directory and open when press cell

leap out

Active Member
Joined
Dec 4, 2020
Messages
271
Office Version
  1. 2016
  2. 2010
hello

I have this main directory "C:\Users\pc-aa\Desktop\dr" and contains folders and each of folder contain sub folders . so what i want bring all the sub directories from the main directory in multiple columns and open when press any cell and every time I create a new sub folders in folder is existed in same column then add in the same column and if I add a new folder in the main directory then should create a new column for a new folder it shows a new sub directory in a new column .

note : the headers are the same folders' names which are existed in the main directory and under the headers are sub-directory for each sub-folder



this is expected my result

da.xlsm
ABCDEF
1DIRECTORY1DIRECTORY2DIRECTORY3DIRECTORY4DIRECTORY5DIRECTORY6
2C:\Users\alhagag\Desktop\FL\DIRECTORY1\AA1C:\Users\alhagag\Desktop\FL\DIRECTORY2\BB1C:\Users\alhagag\Desktop\FL\DIRECTORY3\CC1
3C:\Users\alhagag\Desktop\FL\DIRECTORY1\AA2C:\Users\alhagag\Desktop\FL\DIRECTORY2\BB2C:\Users\alhagag\Desktop\FL\DIRECTORY3\CC2
4C:\Users\alhagag\Desktop\FL\DIRECTORY1\AA3C:\Users\alhagag\Desktop\FL\DIRECTORY2\BB3C:\Users\alhagag\Desktop\FL\DIRECTORY3\CC3
5C:\Users\alhagag\Desktop\FL\DIRECTORY1\AA4C:\Users\alhagag\Desktop\FL\DIRECTORY2\BB4C:\Users\alhagag\Desktop\FL\DIRECTORY3\CC4
6C:\Users\alhagag\Desktop\FL\DIRECTORY1\AA5C:\Users\alhagag\Desktop\FL\DIRECTORY2\BB5C:\Users\alhagag\Desktop\FL\DIRECTORY3\CC5
DIC
 
Last edited:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I made mistake about directory
this is the right C:\Users\alhagag\Desktop\fl"
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

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