Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default FileSearch using VBA

Hello,

The problem that I am experiencing is that I am trying to
run macro with a file search loop, searching for .wav
files. The problem is that for some unkown reason
searching for sound files does not seem to be supported in
Excel 2002. I was hoping that someone may have a solution
to my problem.

When I look in the file types supported in Excel 2002. it
seems to support a wide variety, but nothing to do with
sound files. I cannot see if there are any references that
would need to be added as this function seems to be
supported in Excel 2000.

Kind regards
Mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default FileSearch using VBA

With Application.FileSearch
.NewSearch
.LookIn = "C:\"
.SearchSubFolders = True
.FileName = ".wav"
.FileType = msoFileTypeAllFiles
End WithShould get your wav files. Although some have said FileSearch has
problems in xl2002. -- Regards,Tom Ogilvy"Mark" wrote in
message ...
Hello,

The problem that I am experiencing is that I am trying to
run macro with a file search loop, searching for .wav
files. The problem is that for some unkown reason
searching for sound files does not seem to be supported in
Excel 2002. I was hoping that someone may have a solution
to my problem.

When I look in the file types supported in Excel 2002. it
seems to support a wide variety, but nothing to do with
sound files. I cannot see if there are any references that
would need to be added as this function seems to be
supported in Excel 2000.

Kind regards
Mark



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default FileSearch using VBA

Below with find the files. Just change starting
location .

Sub test()
Set fs = Application.FileSearch

With fs
.LookIn = "C:\"
.Filename = "*.wav"
.SearchSubFolders = True
If .Execute(SortBy:=msoSortByFileName, _
SortOrder:=msoSortOrderAscending) 0 Then
MsgBox "There were " & .FoundFiles.Count
& " file(s) found."
End If
End With

End Sub


-----Original Message-----
Hello,

The problem that I am experiencing is that I am trying

to
run macro with a file search loop, searching for .wav
files. The problem is that for some unkown reason
searching for sound files does not seem to be supported

in
Excel 2002. I was hoping that someone may have a

solution
to my problem.

When I look in the file types supported in Excel 2002.

it
seems to support a wide variety, but nothing to do with
sound files. I cannot see if there are any references

that
would need to be added as this function seems to be
supported in Excel 2000.

Kind regards
Mark
.

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 in a combo box michaelberrier Excel Discussion (Misc queries) 0 June 16th 06 12:21 AM
.FileSearch Randall[_3_] Excel Programming 4 November 26th 03 01:48 AM
FileSearch Problem Nigel[_4_] Excel Programming 4 October 11th 03 03:43 PM
FileSearch Code Pedro[_4_] Excel Programming 1 August 6th 03 02:27 PM
FileSearch Problem Bin[_2_] Excel Programming 6 August 2nd 03 02:04 PM


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