title: VBA Excel ActiveChart ProtectFormatting
body: <p>I cant write a code that protects my chart from formatting. No error appears but after running the code I can still change formatting of the chart. Maybe you know how I can make it works.</p>
  
  <pre><code> ActiveSheet.ChartObjects("Chart 2").Activate
   With ActiveChart
   Application.ActiveChart.ProtectFormatting = True
   End With
  </code></pre>