title: Excel VBA Chart Auto Shape Top Left Position
body: <p>I have a chart in Excel. I've added a shape to the chart with:</p>
  
  <pre><code>excelChart.Shapes.AddShape(msoShapeRectangle, 0, 0, excelChart.ChartArea.width, 15)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/oU4ep.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oU4ep.png" alt="Chart with shape"></a></p>
  
  <p>I selected the green box and ran the below macro:</p>
  
  <pre><code>Sub Macro6()
  
      Selection.ShapeRange.Left = 0
      Selection.ShapeRange.Top = 0
  
  End Sub
  </code></pre>
  
  <p>I was expecting the green box to be positioned flush in the top left of the orange chart area, but as you can see there seems to be some kind of margin before the top/left zero coordinate starts..</p>
  
  <p>How can I programmatically position the green box flush in the corner?</p>