View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Simon Murphy[_2_] Simon Murphy[_2_] is offline
external usenet poster
 
Posts: 45
Default FileSearch in Office 2007 generates an error?

XP
more info on the fate of app.filesearch and a drop in (commercial)
replacement he
http://www.codematic.net/excel-tools...filesearch.htm

Cheers
Simon
Blog: www.smurfonspreadsheets.net

XP wrote:
Using Office 2007 and Windows XP;

Since converting to Office 2007, the following generates an error on the
second line:

Dim ofsSearch As FileSearch
Set ofsSearch = Application.FileSearch

Error is "Object doesn't support this action"; has the FileSearch object
gone away? Or have I just been using it wrong in the past and Office 2003 let
you get away with it?

Could someone please offer an alternative to FileSearch? An example function
to pattern search for a file would be most appreciated. Thanks much in
advance.

Thanks!