Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
dies this work inexcel 2007
when i do this ittells me that "Object doesn't support this action" any ideas? "Joel" wrote: Here is another method Sub test() folder = "c:\temp" Set FS = Application.FileSearch With FS .NewSearch .LookIn = folder .SearchSubFolders = False '.Filename = "Run" '.MatchTextExactly = True .FileType = msoFileTypeExcelWorkbooks FileCount = .Execute If FileCount 0 Then MsgBox "There were " & .FoundFiles.Count & _ " file(s) found." Else MsgBox "There were no files found." End If End With End Sub "dstiefe" wrote: I have the file path... now I need to count the number of xcel files |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pulling pdf files from general folder to specific folder | Excel Discussion (Misc queries) | |||
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? | Excel Discussion (Misc queries) | |||
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? | Excel Programming | |||
Counting files in a folder | Excel Programming | |||
counting files in a folder | Excel Programming |