Macro to list Directories in various location - per worksheet

joldfield101

New Member
Joined
Jul 8, 2013
Messages
2
I would like to index the directories i have on various servers in excel. and ideally have a script/macro i run to update them.

so i have:

\\server1\share1
\\server1\share2
\\server1\share3
\\server2\share1
\\server2\share2
\\server3\share1
\\server3\share2
\\server4\share1


I would like an excel spreadsheet with a tab/worksheet for each location if possible, so i don't have lots of different XLSX files to manage.

i want an excel spreadsheet with a worksheet for each so worksheet1 would be the folder list of the directories in \\server1\share1 listed in column A. Worksheet2 would be a list of the directories in \\server1\share2 listed in column A....etc.....

is this possible?
 
Last edited:

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,215,016
Messages
6,122,700
Members
449,092
Latest member
snoom82

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