Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7161903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:38:45+00:00 2026-05-28T13:38:45+00:00

I am able to place multiple charts on a chart sheet by creating an

  • 0

I am able to place multiple charts on a chart sheet by creating an empty chart sheet and then setting the Location of the charts to that empty chart sheet.

'This creates multiple charts within a single chart sheet!

Charts.Add 'Creates empty chart page when empty cell is selected

'Keep track of chart page for later reference
Dim chartSheet As String
chartSheet = ActiveChart.Name

.... 'Create three separate charts with data here

'Now place these charts within our empty chart page

Set chart1 = chart1.Location(Where:=xlLocationAsObject, Name:=chartSheet)
Set chart2 = chart2.Location(Where:=xlLocationAsObject, Name:=chartSheet)
Set chart3 = chart3.Location(Where:=xlLocationAsObject, Name:=chartSheet)

All of the code works up until this point. The chart sheet contains all 3 charts, although the charts are all overlapping. When I try to adjust the position of the charts…

'This code fails to run!
chart1.Parent.Top = 0
chart1.Parent.Left = 0

The code returns a runtime error of Object doesn’t support this property or method. I know it’s possible to move the graphs manually by clicking and dragging, and I know that the above code works if the chart is within a normal worksheet. But for some reason, this code fails when the charts are within a chartsheet. Is there any way to get VBA to do what I want?

Thanks for the help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:38:46+00:00Added an answer on May 28, 2026 at 1:38 pm

    After a bit of Experimentation I belive your code isn’t running because chart1 is it’s own worksheet.

    When I drilled into a selected chart i’ve noticed the following difference. If the chart is embedded (Object in another sheet) the Parent is a Object/ChartObject which has properties Top andLeft (it’s relative location in the worksheet). If the chart is it’s own worksheet, the Parent is actually an Object/Thisworkbook' which does not haveToporLeft’ properties. This makes sense because when you create a chartSheet the chart fills the entire sheet area and thus cannot have a relative postion.

    If you insert a breakpoint on chart1.Parent.Top = 0 and view locals…. you can see what I have explained above.

    EDIT: to suggest something reagrding your ask in the comments.

    The Children are contained in the ‘Shapes’ Collection of the worksheet object. i used the following to show the names of all shapes in a worksheet

    For i = 1 To ActiveWorkbook.ActiveSheet.Shapes.Count
        temp = temp & i & " " & ActiveWorkbook.ActiveSheet.Shapes(i).Name & vbCr
    Next
    
    MsgBox temp
    

    From there you should be able to move and format etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to be able to place the error message when using jQuery validation
We've got an apache module in place for authentication. If the user is able
I want to be able to capture the exception that is thrown when a
This is basically an extension of Update multiple rows with one query? . I
I have written one MapActivity class that is able to display a set of
There have been a few questions like this around the place but none have
I am traversing an XML file (that contains multiple tables) using XSLT. Part of
I'm trying to join multiple myqsl tables and then process resulting arrays using PHP
I'd like multiple users to be able to be tagged in posts on a
I've seen several other posts similar to this (namely https://stackoverflow.com/questions/5237/solutions-for-working-with-multiple-branches-in-asp-net ) but there are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.