Hi,
If you can help, GREAT
If I can help, EVEN BETTER
I have a spreadsheet with a cell (D13) which AVERAGES a column of data. This data column is updated frequently but not on a routine basis. I want to capture the value from the AVERAGE cell(D13) and copy the value and current date to a table on another sheet each time the data column is updated and the spreadsheet saved (resulting in a table of values and dates of each time the spreadsheet is saved.
So far I have the following code but this only works when the cell(D13) is updated manually which is no good for my needs.
Can anyone help please?
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$D$13" Then
With Sheets("CaptureSheet").Range("A65536").End(xlUp)
.Cells(2, 1) = Target
.Cells(2, 2) = Now
.Range("A1:B1").EntireColumn.AutoFit
End With
End If
End Sub
For info, in case there is a better way to do this: what I am trying to achieve is that I am trying to produce a graph of progress for an activity. I have a list of activities and each activity has a progress number assigned to it (0 to 100%). I am using an AVERAGE calculation to average the overall % completion of all of the activities. I then need to plot this progress on a graph to show the progress against timescale visually.
Many thanks,
Liam
So far I have the following code but this only works when the cell(D13) is updated manually which is no good for my needs.
Can anyone help please?
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$D$13" Then
With Sheets("CaptureSheet").Range("A65536").End(xlUp)
.Cells(2, 1) = Target
.Cells(2, 2) = Now
.Range("A1:B1").EntireColumn.AutoFit
End With
End If
End Sub
For info, in case there is a better way to do this: what I am trying to achieve is that I am trying to produce a graph of progress for an activity. I have a list of activities and each activity has a progress number assigned to it (0 to 100%). I am using an AVERAGE calculation to average the overall % completion of all of the activities. I then need to plot this progress on a graph to show the progress against timescale visually.
Many thanks,
Liam
If you can help, GREAT
If I can help, EVEN BETTER