'your code
End If
If Test = 0 Then
'what to do if condition true
Else
'what to do if condition false
End If
'Team Total Net Yards
t = 1
Do
t = t + 1
Loop Until Cells(t, 1) = "TOTAL" And _
Cells(t, 2) = "NET" And _
Cells(t, 3) = "YARDS"
tny1 = Cells(t, 4)
tny2 = Cells(t, 5)
Offset = 1
temp = Cells(c, 1)
If Len(temp) < 4 And Right(temp, 1) = "." Then
temp = temp & Cells(c, 2)
Offset = 2
End If
'Team Net Yards Rushing
t = 1
Do
t = t + 1
Loop Until Cells(t, 1) = "NET" And _
Cells(t, 2) = "YARDS" And _
Cells(t, 3) = "RUSHING"
tny3 = Cells(t, 4)
tny4 = Cells(t, 5)
Offset = 1
temp = Cells(c, 1)
If Len(temp) < 4 And Right(temp, 1) = "." Then
temp = temp & Cells(c, 2)
Offset = 2
End If
For j = 1 to 100
Next [COLOR=#ff0000][B]j[/B][/COLOR]
Do
For i = 1 To 10000
Line Input [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=1]#1[/URL] , x
xStart = False
If Left(x, 5) = "Plate" Or Left(x, 5) = "Eleme" Then
Print [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=2]#2[/URL] , x
Line Input [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=1]#1[/URL] , x
a$ = x
For j = 1 To 12
Line Input [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=1]#1[/URL] , x
Next j
End If
Next i
Loop
Sub Process()
Dim i As Long, j As Long, xStart As Boolean
Dim x As String
Dim xPrint As Boolean
Dim A As String
Close
Open "D:\New folder\Plates.txt" For Input As #1
Open "D:\New folder\Output.txt" For Output As #2
Do
For i = 1 To 10000
Line Input #1 , x
xStart = False
If Left(x, 5) = "Plate" Or Left(x, 5) = "Eleme" Then
Print #2 , x
Line Input #1 , x
A$ = x
For j = 1 To 12
Line Input #1 , x
Next j
End If
If j = 2 And x = "-65.000" Then
xPrint = True
End If
A$ = A$ & vbTab & x
If xPrint Then Print #2 , A$
xPrint = False
If Left(x, 5) = "(HZ 1" Then
For j = 1 To 13
Line Input #1 , x
Next j
End If
Next i
Loop
Close
End Sub