ianb
Member
Can any one finish this program please.
Sub Chart2()
'If pivot table field is changed then do this
Sheets("Dashboard (Individual)").Select
ActiveSheet.ChartObjects("1").Activate
ActiveChart.ChartTitle.Select
Selection.Characters.Text = Application.WorksheetFunction.Text(Range("H60").Value, "dd/mm/yyyy")
'refresh chart
End Sub
Also I have this program which sets the pivot table date each day H60 also shows the Date =$I$81 (I81 is the pivot table Date)
When a run a script I loose my Chart Title being =H60 therefore I need a script to enter this in again.
ActiveSheet.PivotTables("PivotTable2").PivotFields("Resolved Date"). _
CurrentPage = Format(Now, "dd/mm/yyyy")
Application.GoTo Range("a1")
Sub Chart2()
'If pivot table field is changed then do this
Sheets("Dashboard (Individual)").Select
ActiveSheet.ChartObjects("1").Activate
ActiveChart.ChartTitle.Select
Selection.Characters.Text = Application.WorksheetFunction.Text(Range("H60").Value, "dd/mm/yyyy")
'refresh chart
End Sub
Also I have this program which sets the pivot table date each day H60 also shows the Date =$I$81 (I81 is the pivot table Date)
When a run a script I loose my Chart Title being =H60 therefore I need a script to enter this in again.
ActiveSheet.PivotTables("PivotTable2").PivotFields("Resolved Date"). _
CurrentPage = Format(Now, "dd/mm/yyyy")
Application.GoTo Range("a1")