Simplifying the code to an extreme
Private Sub CommandButton1_Click()
Code
Do while
Code
If ... then
CHARTS
End if
CHARTS
loop
Code
End sub
Within the "IF...THEN" loop I activate a graph and specify the source. I am doing this for multiple charts.
I also have to do the same in the code immediately after the "if..then" loop.
ActiveSheet.ChartObjects("CB_C").Activate
ActiveChart.PlotArea.Select
ActiveChart.SetSourceData Source:=Sheets("Your Consortia for this quarter").Range("D2:D16,AU2:AU16"), PlotBy:=xlColumns
The first part of the source does not change, the second part does.
Any suggestions on how I can make it more efficient or break down the procedure so it can be run?
Thanks
Bookmarks