Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 15th, 2012  |  syntax: None  |  size: 0.23 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. VBA Excel ActiveChart ProtectFormatting
  2. ActiveSheet.ChartObjects("Chart 2").Activate
  3.  With ActiveChart
  4.  Application.ActiveChart.ProtectFormatting = True
  5.  End With
  6.        
  7. ActiveSheet.ChartObjects("Chart 2").Chart.ProtectFormatting = True