henryvii99
New Member
- Joined
- Apr 22, 2011
- Messages
- 32
Dear everyone,
I have a macro which can copy the data from column D to column L and shift the existing data to the next column by the following script,
This time, I just to copy the value from C4:C204 to D4:204 every x seconds, without the need to shift the data.
But I want to control the update time by the input in column B, e.g. when B4 is 45, I want the cell to be copied from C4 to D4 every 45 seconds.
Many thanks in advance!
I have a macro which can copy the data from column D to column L and shift the existing data to the next column by the following script,
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim LC As Long
If Not Intersect(Target, Range("D322")) Is Nothing Then
Application.EnableEvents = False
LC = Cells(4, Columns.Count).End(xlToLeft).Column + 1
Range("D4:D322").Copy Destination:=Cells(4, LC)
Application.EnableEvents = True
End If
End Sub
This time, I just to copy the value from C4:C204 to D4:204 every x seconds, without the need to shift the data.
But I want to control the update time by the input in column B, e.g. when B4 is 45, I want the cell to be copied from C4 to D4 every 45 seconds.
Many thanks in advance!