The TM Directory Listing add-in, with over 4,000 downloads in the last 12 months, creates a table in Microsoft Excel of all the files and folders (also known as directories) in a specified directory. Several options control what is shown and it includes the capability of creating a outline. The result is easily extended to add hyperlinks or sort the data in different ways or filter the data according to custom requirements.
A typical table looks as shown in the 2 images below.
With the outline feature enabled, the result looks as below.