LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 921
Default 2007 Compatability

Hi,

I have a function written in Excel 2003:

Sub Check_if_files_exist(path, fname, fileexists2)

With Application.FileSearch
.NewSearch
.FileName = fname
.LookIn = path
.Execute

If .FoundFiles.Count = 1 Then
fileexists2 = 1 'The File exists
Else
fileexists2 = 0 'The file does not exist
End If

End With

End Sub

The problem is that someone with 2007 cant use this because it does not
recognize
With Application.FileSearch. Is there another command that is compatable in
both 2003 and 2007?

Thanks

 
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
2007 Compatability Pack for Office 2003 dgob123 Excel Discussion (Misc queries) 1 May 22nd 08 02:19 PM
Excel 2007 Compatability Checker Angie Excel Discussion (Misc queries) 1 January 8th 08 07:48 PM
Compatability of Excel 2007 files RICK AT AUGUSTACOOP Excel Discussion (Misc queries) 2 October 4th 07 09:45 PM
Excel compatability 2003-2007 Vitordf Setting up and Configuration of Excel 3 September 26th 07 07:21 PM
Excel 2007 Compatability Tintin Excel Discussion (Misc queries) 0 June 5th 06 05:19 AM


All times are GMT +1. The time now is 08:09 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"