title: VBA Getting an error when trying to move a chart
body: <p>I have written the following code that is used to create a chart in an excel sheet:</p>
  
  <pre><code>Sub AddChart()
  
  Dim sh As Worksheet
  Dim chrteit As Chart
  
  Set sh = ActiveWorkbook.Worksheets("TraceTable")
  Set chrteit = sh.Shapes.AddChart.Chart
  
  lastrows = Range("A2").End(xlDown).Row
  
  With chrteit
  .ChartType = xlXYScatter
  .SeriesCollection.NewSeries
  .SeriesCollection(1).XValues = sh.Range(Cells(2, 6), Cells(lastrows, 6))
  .SeriesCollection(1).Values = sh.Range(Cells(2, 7), Cells(lastrows, 7))
  
      Let chrteit.Parent.Name = "EIT"
      .Parent.Height = Range("N2:N14").Height
      .Parent.Width = Range("N2:T2").Width
      .Parent.top = Range("N2").top
      .Parent.Left = Range("N2").Left
      .Parent.Placement = xlFreeFloating
  
  End With
  </code></pre>
  
  <p>Now after this code runs, a chart is created with the used data cells. I then have another macro run that will manipulate all the data and move it around, so I drew the charts to reference the cells easily before the data gets manipulated. Anyways, the cells are reformatted and adjust in size, so the graph stays where it is. All I want to then do is move the chart back to the left using:</p>
  
  <pre><code>Sub MoveChart()
  
  With ActiveWorkbook.Worksheets("TraceTable")
  .ChartObjects("EIT").Left = .Range("N2").Left
  End With
  
  End Sub
  </code></pre>
  
  <p>But I am getting an error that says "The item with the specified name wasn't found." and highlights the line:</p>
  
  <pre><code>.ChartObjects("EIT").Left = .Range("N2").Left
  </code></pre>
  
  <p>What is wrong with my code?! It worked once before but I'm not sure what I changed. Please help, thank you!</p>