Tchamanian
New Member
- Joined
- Jun 7, 2011
- Messages
- 3
Im having some problems having the macro triggered by the value change on one of my cells.
The cell's value is not manually changed by user or changed by VBA code, rather, it is changed by an external feed that is transfered to excel via DLL (dynamic link library).
Basically what I am looking to acomplish is to store all historical values previously expressed in target cell below the target cell sequentially.
ex:
A1 = target change(live data feed from external dll.)
A2 = value expressed in cell A1 1-value ago
A3 = value expressed in cell A1 2-values ago
A4 = value expressed in cell A1 3-values ago and so on.
An Example code I am trying is as follows:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
Range ("A1").Copy Destination:=("A2")
Range("A2").Select
Any help on this would be greatly appreciated!
Thank you!
The cell's value is not manually changed by user or changed by VBA code, rather, it is changed by an external feed that is transfered to excel via DLL (dynamic link library).
Basically what I am looking to acomplish is to store all historical values previously expressed in target cell below the target cell sequentially.
ex:
A1 = target change(live data feed from external dll.)
A2 = value expressed in cell A1 1-value ago
A3 = value expressed in cell A1 2-values ago
A4 = value expressed in cell A1 3-values ago and so on.
An Example code I am trying is as follows:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
Range ("A1").Copy Destination:=("A2")
Range("A2").Select
Any help on this would be greatly appreciated!
Thank you!