I am using Excel 2010
I would like to insert the file name of a list of files withing a certain folder location into an Excel cell.
I.e. if the file path is: C:\Users\NAME\Documents\FolderPath
and in the FolderPath I have several files of a certain type (File001.DAT ... File00N.DAT)
How can I populate all cells within a certain column (and starting at a certain row) with the file names *.DAT ?
Thanks in advance.
Update: I used command prompt to write file names to a text file. In command prompt I navigated to the directory in question:
CD /Directory/Of/FIles
and then I wrote the files to a text file as follows:
dir /b *.png > FIles.txt
the flag /b gives me names only. I then copied all the names and pasted them into Excel. It's not as robust as Bruce Wayne's solution but for the time being, it did what I needed.