-
Book Overview & Buying
-
Table Of Contents
101 Excel 2013 Tips, Tricks and Timesavers
By :
Tip 8: Generating a List of Filenames
This tip describes how to retrieve a list of filenames in a folder and display them in a worksheet.
This technique uses an Excel 4 XLM macro function in a named formula. It’s useful because it’s a relatively simple way of getting a list of filenames into a worksheet — something that normally requires a complex VBA macro.
Start with a new workbook and then follow these steps to create a named formula:
1. Choose Formulas⇒Define Name to display the New Name dialog box.
2. Type FileList in the Name field.
3. Enter the following formula in the Refers To field (see Figure 8-1):
=FILES(Sheet1!$A$1)
4. Click OK to close the New Name dialog box.

Figure 8-1: Using the New Name dialog box to create a named formula.
Note that the FILES function is not a normal worksheet function. Rather, it’s an old XLM style macro function that is intended to be used on a special macro sheet...
Change the font size
Change margin width
Change background colour