Hello,
I found the latest solution i.e. Record Value through Remote data is working super fast. Once again Thank you for the same.
Therefore, I am trying to incorporate the same type of coding in our old solution i.e.Record Number of sum to formula based cell - Excel.
I have tried coding with your reference of latest solution.
Below code in sheet2:
Private Sub Worksheet_Calculate()
Call ChkEvnts
End Sub
Below code in Module:
Sub ChkEvnts()
Application.EnableEvents = False
Dim Rpt As Range
Dim Cll As Range
For Each Cll In Sheet2.Range("C3:C25")
Set Rpt = Sheet1.Range(Cll.Address)
If IsNumeric(Cll.Value) And Cll.Value <> 0 _
And Cll.Offset(0, 1).Value <> Rpt.Offset(0, 1).Value _
And Cll.Offset(0, 1).Value <> "" Then
Rpt.Offset(0, 4).Value = Now
If Cll.Offset(0, 1).Value > 0 Then
Rpt.Offset(0, 2).Value = Rpt.Offset(0, 2).Value + Cll.Value
ElseIf Cll.Offset(0, 1).Value < 0 Then
Rpt.Offset(0, 3).Value = Rpt.Offset(0, 3).Value + Cll.Value
End If
With Rpt.Offset(0, -1).Resize(1, 6)
.Interior.Color = vbGreen
End With
Else:
With Rpt.Offset(0, -1).Resize(1, 6)
.Interior.Color = vbWhite
End With
End If
Next Cll
Application.EnableEvents = True
End Sub
Can you help me understand where i am lacking in getting the result. I am working to get the result like Record Number of sum to formula based cell - Excel with coding reference of Record Value through Remote data
If the Rate changes in column C and increase from past rate, than the respected quantity in Column D to add to Column E and if Rate changes in column C and decrease from past rate, than the respected quantity D in to add in column F.
Can you please able to share your expert input.
Regards,