Chart how to find lastrow?

  • Thread starter Thread starter Craigm
  • Start date Start date
C

Craigm

I am creating charts on a seperate worksheet and need to locate th
bottom of the last chart on the page.

I have code that pops charts into columns b thought m. I am creatin
each chart under the one above it. I need to locate the botom of th
previously created chart to determine where the next chart shoul
begin.

The grey cells are failiing me again!

Thanks for your help!

Crai
 
Dim objCht as ChartObject
with Activesheet.
set objCht = .ChartObjects(.ChartObjects.count)
End with

msgbox objCht.bottomRightCell.Row
 

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