Application.FileSearch not working in 2007

clut

Board Regular
Joined
Oct 5, 2006
Messages
74
I have a simple Excel utility that searches a folder for MP3's, and then catalouges them. I'm using Excel 2003 and it works fine but I've tried to run it on another computer (running office 2007) and it trhows up an error on the with Application.FileSearch line.

I've looked through the help, but it wasn't any help.

Can anyone help?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
clut

Sorry your out of luck if you must use Application.FileSearch, it's just not supported in Excel 2007.

You should try another method of searching for files, perhaps the File System Object.
 
Upvote 0
Ok, I've had a look through the link you sent me, and I now have Excel outputting a list of all folders within a certain directory. I have tried to modify this code to output all files in all folders but it doesn't work.

The example looped through each folder in an fso.getfilefolder, and I tried to loop through each file within each folder. I would normally sit down and work this out myself, but the help system isn't, and I can't really spend all day tucked away in here coding when I should be spending time with the family.

Many thanks
 
Upvote 0

Forum statistics

Threads
1,225,071
Messages
6,182,687
Members
453,132
Latest member
nsnodgrass73

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