Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Has anyone come across the problem of Filesearch causing an 1004 error
message. Running the compiler doesn't cause a problem. The macro stops it's on the line: Set fs = application.filesearch The error message is: method 'filesearch' of object '_application' failed. This doesn't seem to be the usual problems using the filesearch command. I'm using XL 2003 (11.6355.6360) SP1 with Win XP Many thanks James dim fs dim i as integer Set fs = Application.FileSearch With fs .LookIn = "c:\" .FileName = "*.xls" .SearchSubFolders = True If .Execute(SortBy:=msoSortByFileName, SortOrder:=msoSortOrderAscending) 0 Then For i = 1 To .FoundFiles.Count debug.print .foundfiles(i) next i end if end with |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run time error 1004 When running in 2003 | Excel Discussion (Misc queries) | |||
Runtime error '1004' General ODBC error | New Users to Excel | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) | |||
Run time error '1004': Generaol ODBC error | Excel Programming | |||
Run time error 1004 General ODCB Error | Excel Programming |