أخي الكريم أبا الحسن
الطلب غير منطقي في حقيقة الأمر ، يمكن حل المشكلة باستخدام عمود مساعد لتخزين القيم فيه ..
جرب الكود التالي عله يفي بالغرض مع العلم أنني غير مقتنع بالطلب
CODE
Const iCol As Integer = 15
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Cells.CountLarge = 1 And .Column = 1 Then
If Not IsEmpty(.Value) And IsNumeric(.Value) Then
Application.EnableEvents = False
.Offset(, iCol).Value = .Offset(, iCol).Value & IIf(.Offset(, iCol).Value = Empty, Empty, "+") & Target.Value
.Value = Evaluate(.Offset(, iCol).Value)
.Select
Application.EnableEvents = True
End If
End If
End With
End Sub
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim tmp
With Target
If .Cells.CountLarge = 1 And .Column = 1 Then
Application.EnableEvents = False
Cancel = True
tmp = Target.Value
Target.Value = .Offset(, iCol).Value
Application.Wait Now + TimeValue("00:00:02")
Target.Value = tmp
Application.EnableEvents = True
End If
End With
End Sub