DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub tt()
Dim x, y As Integer
x = Cells(1, 1).Value
y = Cells(1, 2).Value
Cells(1, 1) = x + y
Cells(1, 2) = 0
End Sub
Sub test()
Dim r, t As Range
Dim x, y As Integer
On Error Resume Next
x = 0
y = 0
Set r = Application.InputBox(Prompt:="Birinci Hucreyi Seçin", Type:=8)
x = r.Value
xx = r.Address
Set t = Application.InputBox(Prompt:="Ikinci Hucreyi Seçin", Type:=8)
y = t.Value
yy = t.Address
cevap = MsgBox("Seçilen hücreler toplanacak mi?", vbQuestion + vbYesNo, "Ne Yapilacak")
If cevap = vbYes Then
Range(xx) = x + y
Range(yy) = 0
Else
Range(xx) = x - y
Range(yy) = 0
End If
End Sub