Sub Gino()
Dim j As Integer
Cells(6, 14).Value = Cells(6, 14).Value + 1
j = Cells(6, 14).Value
Range("C86").Select
Selection.Copy
ActiveSheet.Cells(j, 17).Select
ActiveSheet.Paste
Range("C132").Select
Selection.Copy
ActiveSheet.Cells(j, 18).Select
ActiveSheet.Paste
Range("E86").Select
Selection.Copy
ActiveSheet.Cells(j, 16).Select
ActiveSheet.Paste
If ActiveSheet.ChartObjects.Count = 1 Then ActiveChart.Parent.Delete
Sheets("ReportSummary").ChartObjects("Chart 1").Activate
ActiveChart.SetSourceData Source:=Sheets("Report").Range(Cells(2, 16), Cells(j, 18))
ActiveChart.ChartType = xlLine
Call Test
End Sub
Sub Test()
Application.OnTime Now + TimeValue("00:00:15"), "Gino"
End Sub
|