I am trying to edit a piece of recorded macro code such that when I click on a chart and run the macro it will apply the formatting changes
I have tried "With ActiveChart.Parent" and "ActiveSheet.Shapes("NAM")"
Sub Macro2()
    ActiveSheet.Shapes("NAM").Fill.Visible = msoFalse
    ActiveChart.FullSeriesCollection(1).Select
    ActiveSheet.Shapes("NAM").Line.Visible = msoFalse
    ActiveChart.ChartGroups(1).GapWidth = 50
    ActiveChart.PlotArea.Select
    ActiveSheet.ChartObjects("NAM").Activate
    ActiveChart.FullSeriesCollection(1).Select
    ActiveChart.FullSeriesCollection(1).ApplyDataLabels
    ActiveChart.Axes(xlValue).Select
    Selection.TickLabelPosition = xlNone
    ActiveChart.Axes(xlValue).MajorGridlines.Select
    Selection.Delete
End Sub
This would ideally remove the chart fill, chart border, gridlines, labels on the y-axis, and then add data labels
 
     
     
    