Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What happend to the following function? Now that I'm using Vista and Excel
2007. With Application.FindSearch .Filename = FleName .LookIn = SrchFlePath .TextOrProperty = SrchNam If .Execute(SortBy:=msoSortByFileName, _ SortOrder:=msoSortOrderDescending) 0 Then For i = 1 To .FoundFiles.Count SrchNme = .FoundFiles.Item(i) Vrsxls = Right(SrchNme, 6) VrsNum = Left(Vrsxls, 2) If IsNumeric(VrsNum) Then VrsNbr = Left(Vrsxls, 2) Else VrsNbr = 0 End If Exit For Next i Else VrsNbr = 0 End If VrsNbr = VrsNbr + 1 VrsNo = Format(VrsNbr, "00") End With |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
FileSearch (not .FindSearch) was removed in xl2007.
Ron de Bruin shares a couple of replacements: http://www.rondebruin.nl/copy3.htm (for Dir()) and http://www.rondebruin.nl/fso.htm (for FSO) Rick wrote: What happend to the following function? Now that I'm using Vista and Excel 2007. With Application.FindSearch .Filename = FleName .LookIn = SrchFlePath .TextOrProperty = SrchNam If .Execute(SortBy:=msoSortByFileName, _ SortOrder:=msoSortOrderDescending) 0 Then For i = 1 To .FoundFiles.Count SrchNme = .FoundFiles.Item(i) Vrsxls = Right(SrchNme, 6) VrsNum = Left(Vrsxls, 2) If IsNumeric(VrsNum) Then VrsNbr = Left(Vrsxls, 2) Else VrsNbr = 0 End If Exit For Next i Else VrsNbr = 0 End If VrsNbr = VrsNbr + 1 VrsNo = Format(VrsNbr, "00") End With -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Application.FileSearch | Excel Discussion (Misc queries) | |||
Set fs = Application.FileSearch | Excel Programming | |||
Application.FileSearch Help | Excel Programming | |||
Application.Filesearch | Excel Programming | |||
VBA Application.FileSearch | Excel Programming |