Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Application.FileSearch 2003 vs 2007

Seems that they removed this from the new version.
I have see some links but still cannot figure out what to do now.
Can someone please help? Thanks

Set Fs = Application.FileSearch
With Fs
.LookIn = "C:\Network\FileLocations\"
.Filename = "FileName.xls"
If .Execute(SortBy:=msoSortByFileName, _
SortOrder:=msoSortOrderAscending) = 0 Then
'Do nothing
Else
'Then set a formula in main dbs file to get next entry row cell in file it
was loking for.
Dim SetFile As String
SetFile = "FileName.xls"
Range("A1").Value = "'LookIn & "[" & SetFile & "]Sheet1'!$A$1"
End If
End With

The formula still does that apostrophe thing when file is not open and that
is what I need for changes to work.

Any help is highly appreciated

Thank you

--
George G
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Application.FileSearch 2003 vs 2007

FileSearch has been ditched in Excel 2007. Use Dir in its place, there is a
good example in Help.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Sgwapt" wrote in message
...
Seems that they removed this from the new version.
I have see some links but still cannot figure out what to do now.
Can someone please help? Thanks

Set Fs = Application.FileSearch
With Fs
.LookIn = "C:\Network\FileLocations\"
.Filename = "FileName.xls"
If .Execute(SortBy:=msoSortByFileName, _
SortOrder:=msoSortOrderAscending) = 0 Then
'Do nothing
Else
'Then set a formula in main dbs file to get next entry row cell in file it
was loking for.
Dim SetFile As String
SetFile = "FileName.xls"
Range("A1").Value = "'LookIn & "[" & SetFile & "]Sheet1'!$A$1"
End If
End With

The formula still does that apostrophe thing when file is not open and
that
is what I need for changes to work.

Any help is highly appreciated

Thank you

--
George G



Reply
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
Set fs = Application.FileSearch [email protected] Excel Programming 4 April 15th 08 10:17 PM
Application.FileSearch Help Patrick Kirk Excel Programming 2 April 7th 08 06:22 PM
application.filesearch error in excel 2007 Ramesh Excel Programming 3 February 11th 08 11:54 AM
Application.FileSearch in 2007 Amery Excel Programming 2 December 13th 07 10:49 PM
replacement for Application.FileSearch in 2007 SteveDB1 Excel Programming 1 July 11th 07 06:28 PM


All times are GMT +1. The time now is 03:41 AM.

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"