Like fill all filename into Worksheet MAIN Range("A1").
LOL. hey! pretty close! try this instead?
rules for that code to work:
- code must be behind the sheet you want the file name to go in, OR:
- code in a standard module and the active sheet be the target sheet to get the data
- all filenames are thrown into column A only
- first filename thrown to row 2, and every other filename thrown down each row, one by one downward, until no more files found
- you want file names to start being thrown into cell ''A2''
this will obviously have to be changed when you run it. but I'm sure you can change it to get what you want, if you could take my original and get as far as you did.
Bookmarks