Does anyone know how I can change the position of a legend (within a chart) even though the worksheet is protected.
I have used the following code (which works fine when the workseet is unprotected):
ActiveSheet.ChartObjects("Chart3").Chart.Legend.Top = 500
I have also tried:
With ActiveSheet.ChartObjects("Chart3")
.Chart.Legend.Top = 500
End With
and:
With ActiveSheet.ChartObjects("Chart3").Chart
.Legend.Top = 500
End With
and also:
With ActiveSheet.ChartObjects("Chart3").Chart.Legend
.Top = 500
End With
to no avail.
any help would be greatly appreciated.
Thanks
Mark
I have used the following code (which works fine when the workseet is unprotected):
ActiveSheet.ChartObjects("Chart3").Chart.Legend.Top = 500
I have also tried:
With ActiveSheet.ChartObjects("Chart3")
.Chart.Legend.Top = 500
End With
and:
With ActiveSheet.ChartObjects("Chart3").Chart
.Legend.Top = 500
End With
and also:
With ActiveSheet.ChartObjects("Chart3").Chart.Legend
.Top = 500
End With
to no avail.
any help would be greatly appreciated.
Thanks
Mark