Morning
How do end this routine if there is no price?
(without holding down the enter key for ages doh! )
[vba]For i = 2 To iLastRow
If Cells(i, "A").Value = sPrem And Cells(i, "D").Value = "CHF" Then
dPrice = Cells(i, "C").Value
MsgBox sPrem & dPrice
Else
MsgBox "No price" 'how do i stop routine here?
End If
Next i[/vba]