جرب هذا الكود
Private Sub Worksheet_Selectionchange(ByVal Target As Range)
For s = 1 To 2000 '00
If Cells(s + 10, 9).Value = "غ" And Cells(s + 10, 10).Value = "غ" Then
Cells(s + 10, 11).Value = "غ"
Else
Cells(s + 10, 11).Value = Val(Cells(s + 10, 9).Value) + Val(Cells(s + 10, 10).Value)
If Cells(s + 10, 9).Value = "" And Cells(s + 10, 10).Value = "" Then Cells(s + 10, 11).Value = ""
End If
Next
End Sub