K               L           M
    1    Starting_Year    Code        ID
        ------------------------------------
    2    1982            ALLRIN     400200583
    3    1983            ALLRIN     000083522
    4    1983            ALLRIN     400200583
Any way to create two text files, there name will be "1982", "1983" according to the "Starting_Year", And "1982" file contains "400200583", also "1983" file contains "000083522" and "400200583".
it is what I had to try ,I am wondering if I have to use a for loop to catch the data from "Starting_Year", "ID"? Any idea, and how I can do it? Big thanks!
 Public Function CreateTextFile(FileName As String, Optional Overwrite As Boolean = True, Optional Unicode As Boolean = False) As Scripting.TextStream
    Dim oTs as Scripting.TextStream
    set oTs = CreateTextFile("W:\starting_Year.txt",True)
    oTs.Write("ID")
    oTs.close
    End Function
 
    