Chart identification

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Tod was kind enough to supply me with this piece of code:

With ActiveSheet.ChartObjects("Chart 1")
.Activate
.Top = Range("C3").Top
.Left = Range("C3").Left
End With

Which enables me to move Chart 1 to cell C3. I need to correct this so that
I can move an already activated chart regardless of the chart id.

Thanks
The Doctor
 
With ActiveChart.Parent
.Top = Range("C3").Top
.Left = Range("C3").Left
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top