+ Reply to Thread
Results 1 to 4 of 4

Chart how to find lastrow?

  1. #1
    Registered User
    Join Date
    06-16-2005
    Posts
    62

    Chart how to find lastrow?

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

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

    The grey cells are failiing me again!

    Thanks for your help!

    Craig

  2. #2
    Tom Ogilvy
    Guest

    RE: Chart how to find lastrow?

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

    msgbox objCht.bottomRightCell.Row

    --
    Regards,
    Tom Ogilvy


    "Craigm" wrote:

    >
    > I am creating charts on a seperate worksheet and need to locate the
    > bottom of the last chart on the page.
    >
    > I have code that pops charts into columns b thought m. I am creating
    > each chart under the one above it. I need to locate the botom of the
    > previously created chart to determine where the next chart should
    > begin.
    >
    > The grey cells are failiing me again!
    >
    > Thanks for your help!
    >
    > Craig
    >
    >
    > --
    > Craigm
    > ------------------------------------------------------------------------
    > Craigm's Profile: http://www.excelforum.com/member.php...o&userid=24381
    > View this thread: http://www.excelforum.com/showthread...hreadid=530492
    >
    >


  3. #3
    Tom Ogilvy
    Guest

    RE: Chart how to find lastrow?

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

    msgbox objCht.bottomRightCell.Row

    --
    Regards,
    Tom Ogilvy


    "Craigm" wrote:

    >
    > I am creating charts on a seperate worksheet and need to locate the
    > bottom of the last chart on the page.
    >
    > I have code that pops charts into columns b thought m. I am creating
    > each chart under the one above it. I need to locate the botom of the
    > previously created chart to determine where the next chart should
    > begin.
    >
    > The grey cells are failiing me again!
    >
    > Thanks for your help!
    >
    > Craig
    >
    >
    > --
    > Craigm
    > ------------------------------------------------------------------------
    > Craigm's Profile: http://www.excelforum.com/member.php...o&userid=24381
    > View this thread: http://www.excelforum.com/showthread...hreadid=530492
    >
    >


  4. #4
    Registered User
    Join Date
    06-16-2005
    Posts
    62

    Thank You - Dead on

    Just what I needed.

    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1