Please guide me in this macro because the Excel VBA gives error
Sub Button2_Click()
Sheets("Setups").Select
If Range("A2") = Range("H2") Then
Range("K1") = 1
Else
If Range("A2") = Range("H3") Then
Range("K1") = 2
Else
If Range("A2") = Range("H4") Then
Range("K1") = 3
End If
End Sub
Sub Button2_Click()
Sheets("Setups").Select
If Range("A2") = Range("H2") Then
Range("K1") = 1
Else
If Range("A2") = Range("H3") Then
Range("K1") = 2
Else
If Range("A2") = Range("H4") Then
Range("K1") = 3
End If
End Sub