Importing text from another file into Excel list boxes
Posted by Kurt on August 27, 2000 11:20 AM
Hello all,
How can I use the following code to import text from another file into a list box in Excel 97?Sub FilterCrops()
Open "c:\crops.id" For Input As #1
Open "c:\cropsout.txt" For Output As #2
FindCrops = "CE"
Do While Not EOF(1)
Line Input #1, data
If InStr(1, data, FindCrops) Then
Print #2, data
End If
Loop
Close
End Sub
Thanks in advance,
Kurt