PDA

View Full Version : List Folder location & Filenames into a Table and color



mrprofit
04-14-2014, 01:59 PM
Attached is the WB i am working on, code modified from other forum,

now i want to use the "Browse for Folder" to select the folder where the files is in eg. E:\My Docs\Global\ and list the folder location and filenames to table (column I:J), and color them according to every folder location.

I would like the "Browse for Folder" windows to be able to select multiple files instead of just one file a time.


Appreciate for any help, thank you

Excel Fox
04-14-2014, 08:52 PM
To be clear, are you saying you want to browse for multiple files or multiple folders?

mrprofit
04-14-2014, 10:44 PM
Just to able to select multiple files instead of just one files, or can select a folder and will list every filenames.xls within

The current button only can get one file path, and one folder path,
Folder path is not that important, all the file names to list is the main thing I need.

Thank you for helping

Excel Fox
04-14-2014, 11:31 PM
Alright, and how should the coloring of the fonts happen? Are they random colours?

mrprofit
04-14-2014, 11:33 PM
forgot to say, possible list the filenames.xls with its folder path and color them with different color, thanks

Excel Fox
04-15-2014, 12:07 AM
By the way, did you try to put code together from http://www.excelfox.com/forum/f13/search-directories-to-list-files-vba-86/ and http://www.excelfox.com/forum/f2/list-of-all-files-in-a-folder-196/

mrprofit
04-15-2014, 03:58 PM
Color them randomly is fine,


Thank you, your codes show it in msg box, how to list it into the table?