I have this code
Basically it reads a file and only keeps lines that begin with a number 1. I would like to change it to accept 1 and 2Code:Do Until ts.AtEndOfStream strText = ts.ReadLine 'Only import lines starting with 1 If Left(strText, 1) = 1 Then ts2.Write (strText & vbCrLf) End If Loop
Would this do it?
If Left(strText, 1) = 1 OR Left(strText, 1) =2 Then