+ Reply to Thread
Results 1 to 5 of 5

Error when moving chart into another chart sheet

  1. #1
    Registered User
    Join Date
    04-05-2017
    Location
    Houston, TX
    MS-Off Ver
    2016
    Posts
    57

    Error when moving chart into another chart sheet

    I'm trying to have a macro move a chart sheet into another chart sheet. I recorded a macro to see how to do it however when I try to run the macro again after I receive the following error:

    "The specified dimension is not valid for the current chart type."

    The weird thing is that the error appears after the chart has already been moved seemingly successfully. Any ideas of what might be going wrong?

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,628

    Re: Error when moving chart into another chart sheet

    If you really want to* move (not copy) it and paste into Chart 2 as embedded object (in sample file there is already one like that), try:
    Please Login or Register  to view this content.

    * if not, let us know what is desired result.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    04-05-2017
    Location
    Houston, TX
    MS-Off Ver
    2016
    Posts
    57

    Re: Error when moving chart into another chart sheet

    This is the most frustrating error. For some reason this runs if I put a break point on one of the lines in either the original code that I attached or in the version from the reply. But if I don't have a break point it failed with the error that I listed.

  4. #4
    Registered User
    Join Date
    04-05-2017
    Location
    Houston, TX
    MS-Off Ver
    2016
    Posts
    57

    Re: Error when moving chart into another chart sheet

    Still trying to get this to work and still getting an error on the ActiveChart.Location line. I've attached another file which more closely approximates what I'm trying to do with my full code.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-05-2017
    Location
    Houston, TX
    MS-Off Ver
    2016
    Posts
    57

    Re: Error when moving chart into another chart sheet

    Sorry, to keep upping this thread but I'm against a deadline to get this working (as I'm sure everyone is).

    I should have mentioned before that the chart does actually move to the intended location but the code breaks on the same line with the error message that I described.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 03-10-2016, 06:41 AM
  2. Moving chart to new sheet will only return blank sheet
    By Oledolof in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-23-2013, 06:23 AM
  3. Moving a chart from one sheet to the next with dynamic data
    By kylewood337 in forum Excel General
    Replies: 1
    Last Post: 08-21-2013, 02:23 PM
  4. Excel Line Chart - 12 month chart moving with dates
    By rockycj in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-13-2013, 06:41 PM
  5. Moving chart data to other sheet
    By D-smoke in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-29-2012, 08:43 AM
  6. Moving chart to a new sheet
    By Throstur in forum Excel General
    Replies: 1
    Last Post: 01-25-2010, 09:10 AM
  7. Moving Pivot Chart Fields on a chart sheet
    By sherobot in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-28-2006, 05:15 PM

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