I'm working on this excel project and I wanted to ask you about this part of the VBA button procedure. I'm totally beginner with VBA, I just learned about variables. Can someone find any other procedure for this button something like loop procedure. Button is doing its jobs well but I did not know this procedure well established or there is any other like loop.
Here is my VBA button code and my excel file

OK here is my code
Sub Button2_Click()
Dim emri As String, nje As Integer, dy As Integer, tre As Integer
Dim kater As Integer, pese As Integer, gjashte As Integer
Dim shtate As Integer, tete As Integer, nente As Integer
emri = Range("B5").Value
nje = Range("B6").Value
dy = Range("F6").Value
tre = Range("F7").Value
kater = Range("F8").Value
pese = Range("F9").Value
gjashte = nje + dy
shtate = nje + tre
tete = nje + kater
nente = nje + pese
If UCase(Range("B5").Value) = UCase(Range("D6").Value) Then
Range("F6").Value = gjashte
ElseIf UCase(Range("B5").Value) = UCase(Range("D7").Value) Then
Range("F7").Value = shtate
ElseIf UCase(Range("B5").Value) = UCase(Range("D8").Value) Then
Range("F8").Value = tete
ElseIf UCase(Range("B5").Value) = UCase(Range("D9").Value) Then
Range("F9").Value = nente
End If
Range("A12").Value = emri
Range("A13").Value = nje
Range("B5", "B6").ClearContents
End Sub