+ Reply to Thread
Results 1 to 6 of 6

VBA copied chart keeps on pointing to original data, VBA relinking charts to nesource data

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    15

    VBA copied chart keeps on pointing to original data, VBA relinking charts to nesource data

    Dear all,

    I have a chart linked to a source data on sheet "Pattern". I want to copy and paste the chart and the table on multiple sheets. I have managed so far to create the multiple sheets in VBA but when I copy and paste the table and charts on the newly created worksheets, I either have all the newly pasted charts linking to the original data
    (table) on worksheet "Pattern" or I paste the tables but not the charts.

    Can someone help? Ideally I would like to paste a chart and a table on a new worksheet (say WS "English") and have the chart on WS English being linked to the table on the same worksheet?

    Here I am attaching the example.
    Thanks in advance.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by dastr; 03-23-2013 at 03:07 PM.

  2. #2
    Registered User
    Join Date
    03-21-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: VBA copied chart keeps on pointing to original data, VBA relinking charts to nesource

    I have also pasted the code, thank you very much!
    Last edited by dastr; 03-23-2013 at 06:28 PM.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VBA copied chart keeps on pointing to original data, VBA relinking charts to nesource

    dasr,
    I did not want to ignore you, but I am not familiar with charts. I have tried this code, but does not work. I hope others would help you.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-21-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: VBA copied chart keeps on pointing to original data, VBA relinking charts to nesource

    thanks for trying and the quick response.

  5. #5
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: VBA copied chart keeps on pointing to original data, VBA relinking charts to nesource

    Hi, try this

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  6. #6
    Registered User
    Join Date
    03-21-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: VBA copied chart keeps on pointing to original data, VBA relinking charts to nesource

    thanks Sean!!

    Quote Originally Posted by Sean Thomas View Post
    Hi, try this

    Please Login or Register  to view this content.

+ 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