It turns as code 13 mismatch problem when gets to ggem line. Can you please tell me what I'm doing wrong.
Sub sample()
    ActiveSheet.Range("C87").Select
    
   
For lo = 0 To 20
    For i = 0 To 8
    gg = ActiveCell.Offset(-2, i)
    ga = ActiveCell.Offset(-1, i)
    ggem = gg * 0.5 + ga * 0.5
    ActiveCell.Offset(-2, i).Value = ggem
    Next i
Next lo
    If Cells(91, 2).Value < 0.5 Then
    MsgBox ("text'")
    Else
    MsgBox ("text.")
    End If
End Sub 
