by Smokin Joe » Fri Jun 06, 2008 8:24 am
I am writing some code which attempts clears the bet reference UNLESS the bet is not fully matched.
My code is:
For a = 5 To 150
ws1.Range("T" & a).Value = Betref
If Right(Betref, 1) <> "P" Then
' Clear bet references
ws1.Range("T" & a & ":W" & a).ClearContents
End If
Next a
However, the Bet Reference is cleared every time, even if the bet is partially matched, ie "P" is the last character.
What am I doing wrong?
Cheers
SJ