Hi, I am using the following VBA code to move/fix a selected chart to a specific location on a worksheet. The code runs fine, but I end up with 2 duplicate charts: 1 in the new position, and the original chart in its original position. I would appreciate any help in how to fix the code to just move a selected chart.
Sub FixChartPosition ()
Dim Ch As ChartObject
Set Ch=Worksheets("Sheet1").ChartObjects(1)
With Ch
End Sub
I am very new to VBA. Thanks!
Sub FixChartPosition ()
Dim Ch As ChartObject
Set Ch=Worksheets("Sheet1").ChartObjects(1)
With Ch
.Top=Range("A250".Top
.Width=Range("A2150:D2170").Width
.Height=Range("A2150:D2170").Height
End With.Height=Range("A2150:D2170").Height
End Sub
I am very new to VBA. Thanks!