Web Scraping – I have to compare the value of the last cell filled with the penultimate cell

Hello, thanks for your attention.

I have to compare the value of the last cell filled with the penultimate cell.
If the value is different, I want to continue with the current value
if you insert = word error

This is required because my code loads the result of the previous search

                While (area ("a" and line) <> "")
Range ("e1") = line




While (area ("d" and line) = "")
Range ("f1") = minus1

.Document.all ("cpf"). InnerText = Range ("a" and line)

.Document.all ("btn_consult").
Application.Wait (Now + TimeValue ("00:00:01"))
Range ("g" & line) = IE.Document.all ("plan_not_inclosed"). InnerText
Range ("b" and line) = IE.Document.all ("contractOiTV"). InnerText
Range ("d" and row) = IE.Document.all ("msisdnClient"). InnerText
Range ("and" & line) = IE.Document.all ("fixedCustomer"). InnerText
Range ("f" and line) = IE.Document.all ("client plan"). InnerText
Range ("g" and row) = IE.Document.all ("dlg_planos_dados"). InnerText

less1 = line – 1
Line = line + 1

MsgBox ("line")
MsgBox ("minus1")

Application.Wait (Now + TimeValue ("00:00:01"))

Wend
Wend
Wend

End with


End Sub