Hi,

There should not be an End If on the end of this line
If Target.Value = "RLMO" Or Target.Value = "RPMO" And Range("O" & Target.Row) =  "X" Then  End If