Folder search

moe_42

New Member
Joined
Feb 26, 2009
Messages
14
I've written a macro that lists .pdf files in a root directory to an excel file. At the moment, users have to manually enter data for each file they add to the directory. I was wondering if it's possible to write a macro that, when run, will search through the directory for new files automatically?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Maybe I'm missing something but if you already have the macro that lists the files can't you just rerun the macro after any new files have been added? Or maybe have the macro run every night or something like that to update the spreadsheet?
 
Upvote 0
Sorry, I wasn't very specific. Right now, I run the macro for each file that is being listed, meaning that each new file has to be located by the user. I'm hoping to find a way to have the macro locate new files.
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,397
Members
448,957
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top