LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Application file search error in Office XP

I have this vba and it will not result in the file that
I've searching. I'ved used this code in MS Excel 97 and
worked fine. Recently I upgraded to Office XP (SP2) and
got the error.


Dim fsoFileSearch As FileSearch
Set fsoFileSearch = Application.FileSearch

With fsoFileSearch
.NewSearch
.LookIn = "c:\Pres\Reports"
.Filename = "*.xls"
.SearchSubFolders = False
If .Execute(SortBy:=msoSortByFileName, _
SortOrder:=msoSortOrderDescending) 0 Then

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Office application version does not match. Joy Excel Discussion (Misc queries) 0 February 16th 09 01:22 PM
How to use Excel.exe without installing Office in VB Application Neelam Setting up and Configuration of Excel 1 November 3rd 08 08:14 AM
Updated to Office 2007 - Saving Excel file error Duane Excel Discussion (Misc queries) 1 April 14th 08 09:07 AM
Can't access Office Online from Excel Application beenplaces Excel Discussion (Misc queries) 3 June 17th 06 04:15 PM
MS Office error message, "a required .DLL file, MSO97.DLL ..." Steve Setting up and Configuration of Excel 1 January 13th 05 02:04 AM


All times are GMT +1. The time now is 11:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"