Hi
I have 2 form controls where i have attached some code to update some charts on my sheet..
For some reason even after turnimg the screen updating off, it hides all my ovjects and charts before updating all the charts so its like you can see that the charts and most objects get hidden whilst the code is running
I dont like this slight twitch effect and wanted to get around this
I am using excel 2013
I have even put DoEvents but that dont make any difference
This is my code
I have 2 form controls where i have attached some code to update some charts on my sheet..
For some reason even after turnimg the screen updating off, it hides all my ovjects and charts before updating all the charts so its like you can see that the charts and most objects get hidden whilst the code is running
I dont like this slight twitch effect and wanted to get around this
I am using excel 2013
I have even put DoEvents but that dont make any difference
This is my code
Code:
Sub changechart()
Application.screenupdating=false
Dim i As Long
For i = 1 To 5
Worksheets("DailyView2").ChartObjects("Chart0" & i).Activate
With ActiveChart
.SeriesCollection(3).Format.Line.DashStyle = msoLineSysDot
.SeriesCollection(3).Border.Color = RGB(128, 128, 128)
.SeriesCollection(3).Format.Line.Weight = 1.5
.SeriesCollection(4).Format.Line.DashStyle = msoLineSysDot
.SeriesCollection(4).Border.Color = RGB(0, 0, 0)
.SeriesCollection(4).Format.Line.Weight = 1.5
End With
Next i
Application.screenupdating=true
End sub
Last edited by a moderator: