Consulting

Results 1 to 8 of 8

Thread: Copy a table from an excel sheet to an Embedded Excel Chart Object's Sheet

  1. #1

    Unhappy Copy a table from an excel sheet to an Embedded Excel Chart Object's Sheet

    I need to copy a table(range of cells) from an excel sheet to an Excel Chart Object's Sheet embedded in a PowerPoint Slide

    Scenario:
    Excel File (Test.xls): Contains a table

    Power Point File (Test.ppt): Contains an embedded Excel Chart Object, when I double click on this it shows me two excel worksheets - Chart(this sheet contains a chart), and the other sheet, Sheet1 (contains table which is identical to the table in Test.xls)

    How do i copy data from the table in Test.xls to the table in Sheet1 in the object in Test.ppt?

    Thanks in Advance!!!

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Why don't you just add the table as a datatable to the chart?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    @xld: Do you mean I should make the chart in the PP refer to the table in the Excel file?

  4. #4
    The power point slide contains an embedded Excel Chart Object. This shows a chart which represents the data in the same Object's 2nd Sheet i.e. named as Sheet1......I want to update that Sheet1 as per data of same range as of this table......If I make the chart refer to that excel sheet...who ever wants to update the chart will need to carry the excel sheet too.....if i could make a macro to copy data from an excel sheet to an embedded excel sheet...it would be gr8 as it would give the user flexibility to update the sheet with the macro as well as manually.

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    No I mean set the datatable. Right-click the chart, select Chart Options, select the Datatable tab and check the Set data table box.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    I right click on the chart in the PowerPoint slide , but do not see the chart options and the chart options in the Excel sheet have no option to update the table in PP automatically.

    Attached is a sample Excel and Power Point file. The Table in the Excel sheet is identical to that of the chart's table in the embedded object in the PP slide.

    I am trying to find a way out that each time I make changes to the Table in the Excel sheet, I just run a macro and the new values get updated in the Sheet1 of the Embedded object in PP Slide which ofcourse would update the chart.


    Thanks,

    avtar

  7. #7
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Build the chart in Excel and link that to the PPT slide.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  8. #8

    Unhappy

    That is one way to do it, but is there any way to achieve the same through VBA coding....

Posting Permissions

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