PDA

View Full Version : Solved: Application.FileSearch Excel 2003



Wolfgang
04-22-2007, 11:11 PM
Hi everybody?

I loaded an Excel 2003 workbook into Microsoft Office Excel 2007 and when I run a macro I get the following error message:

Run-time error 445 ? Object doesn?t support this action

The respective code statement is:
Set a = Application.FileSearch

The macro looks through my C: drive and lists all Excel files within a specific time frame.

Any idea, please?!

Best,
Wolfgang

Aussiebear
04-22-2007, 11:29 PM
Hi Wolfgang,

If you bring up Object browser in the VBE of 2007 and search for Application.Filesearch it doesn't appear to exist anymore. You may need to rewirite your code to come up with a workaround solution.

:banghead:

Wolfgang
04-22-2007, 11:42 PM
Good Morning Ted...

OUCH...That's what I was afraid of...

Thank you very much...

PS: I should have said, Good Evening...right?!

Best,
Wolfgang

Bob Phillips
04-23-2007, 12:05 AM
Wolfgang,

Filesearch has definitely been dropped for 2007. Presumabl;y, as it was buggy, and Dir exists, MS felt that it was not worth expending the effort to fix it.

Wolfgang
04-23-2007, 12:09 AM
Hi Bob,

Thank you too...

Well, there goes my only possession...there goes my everything...

Best,
Wolfgang