Results 1 to 10 of 10

Convert Embedded PowerPoint Chart to Excel

Threaded View

  1. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Convert Embedded PowerPoint Chart to Excel

    The information would have appeared in the Immediate window within the VBE. from pointpoint ALT+F11 CTRL+G

    I modified the routine slightly to output to text file because the output was too much for immediate window, which is limited to 255 lines.

    Sub X()
    
        Dim shpTemp As Shape
        Dim vntData As Variant
        Dim vntLabels As Variant
        Dim lngSeries As Long
        Dim lngItem As Long
        Dim intUnit As Integer
        
        intUnit = FreeFile
        Open "C:\temp\data.csv" For Output As intUnit
        
        Set shpTemp = ActivePresentation.Slides(1).Shapes(1)
        
        With shpTemp.Chart
            For lngSeries = 1 To .SeriesCollection.Count
                Write #intUnit, .SeriesCollection(lngSeries).Name
                vntData = .SeriesCollection(lngSeries).Values
                vntLabels = .SeriesCollection(lngSeries).XValues
                
                For lngItem = LBound(vntData) To UBound(vntData)
                    Write #intUnit, , vntLabels(lngItem), vntData(lngItem)
                Next
            Next
        End With
        Close intUnit
    End Sub
    I then opened that file in excel and did some cut/paste to re arrange the data.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel chart embedded in powerpoint automatically resizes and distorts
    By BlueDaze in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-23-2021, 03:19 AM
  2. Update embedded excel containing sql in powerpoint
    By DeNam in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2013, 08:23 AM
  3. manipulate embedded excel workbook in Powerpoint
    By kayvon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2012, 03:06 PM
  4. Embedded chart in Powerpoint to Excel
    By JWoodrell in forum Excel General
    Replies: 0
    Last Post: 01-20-2012, 02:43 PM
  5. Embedded chart along with DATA to powerpoint
    By Hari Prasadh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2005, 05:06 AM

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