Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Filesearch in 2003

Hello,

I've recently been upgraded to Excel 2003. For some reason, a pretty
standard filesearch function I'd been using now fails to pick up any files
outside the root of C:.
I've tried it in a machine still using 2000, and it works fine.

Here's some example code:

Sub blahblah()

With Application.FileSearch
.NewSearch
.LookIn = "D:\"
.searchSubFolders = true
If .Execute 0 Then
MsgBox .FoundFiles.Count
End If

End With
End Sub

This yields nothing, even if there is *definitely* files present, regardless
of the filetype!

Any suggestions????

Cheers and best,
David

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Filesearch in 2003

hi David

There are more problems with filesearch
You can try Dir or FileSystemObject
http://www.rondebruin.nl/copy3.htm



--
Regards Ron de Bruin
http://www.rondebruin.nl


"David" wrote in message ...
Hello,

I've recently been upgraded to Excel 2003. For some reason, a pretty
standard filesearch function I'd been using now fails to pick up any files
outside the root of C:.
I've tried it in a machine still using 2000, and it works fine.

Here's some example code:

Sub blahblah()

With Application.FileSearch
.NewSearch
.LookIn = "D:\"
.searchSubFolders = true
If .Execute 0 Then
MsgBox .FoundFiles.Count
End If

End With
End Sub

This yields nothing, even if there is *definitely* files present, regardless
of the filetype!

Any suggestions????

Cheers and best,
David



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
Filesearch 1004 error with XL 2003 [email protected][_2_] Excel Programming 1 July 7th 05 05:47 PM
Filesearch in VB6 Colin Charman Excel Programming 3 June 18th 04 04:18 PM
FileSearch Stephen[_6_] Excel Programming 8 June 12th 04 11:14 PM
FileSearch using VBA Mark[_31_] Excel Programming 2 December 24th 03 05:49 PM
.FileSearch Randall[_3_] Excel Programming 4 November 26th 03 01:48 AM


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

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

About Us

"It's about Microsoft Excel"