How to list files in a directory to worksheet in Excel?

2) Get a list of files in worksheet by using a web browser

Excel-tab-banner

If you want to list files in a folder by using the web browser, you should make sure you have one of the web browsers (Firefox, Opera and Google Chrome) installed in your computer. Supposing you need to list files of following folder (list files in worksheet) in worksheet, see screenshot: (It’s applicable in Windows XP, Windows Vista and Windows 7. )

1. Go to copy the path of the folder (dt kte) in Explorer. For example, the path of this folder is: C:\Users\dt\Desktop\dt kte.

doc-list-files1

2. Open one of the web browsers (FireFox, Opera and Google Chrome) and paste the folder path in the address bar and press Enter key. See screenshot:

doc-list-files2

3. Click Ctrl+A to select all contents in the web browser and press Ctrl+C to copy them.

4. Open Excel and directly paste (using Ctrl+V shortcuts to paste) them in a worksheet. See screenshot:

doc-list-files3

Disadvantage: this method cannot list files in the subdirectory.

Sanat Hegde @Sanat