Macro that will scan your PC for certain file types and list results

robertguy

Board Regular
Joined
May 1, 2008
Messages
121
Hi
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
What I’m after is a macro that will scan your PC for certain file types i.e. ‘xls’, ‘jpg’ . ‘avi’ etc and list the results in column ‘A’.
<o:p></o:p>
Ideally the macro should prompt you for the Drive letter and the file type (or file types if not too complicated) and list the files and the directories their in column ‘A’ e.g. C:\data\smile.jpg
<o:p></o:p>
<o:p></o:p>
Any assistance in this matter would be greatly appreciated
<o:p></o:p>
<o:p></o:p>
Many thanks
<o:p></o:p>
<o:p></o:p>
Rob
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,191,682
Messages
5,987,987
Members
440,124
Latest member
dippy_egg

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
Top