+ Reply to Thread
Results 1 to 2 of 2

copy table or graph and paste into powerpoint

  1. #1
    Forum Contributor funkymonkUK's Avatar
    Join Date
    01-07-2005
    Location
    London, England
    Posts
    500

    copy table or graph and paste into powerpoint

    anybody able to help me copy a table of cells or graph and pasting into a presentation in powerpoint.

    Many thanks

  2. #2
    Forum Contributor
    Join Date
    12-11-2004
    MS-Off Ver
    2007
    Posts
    137
    Hello

    I hope this help you
    to copy a graph in a presentation

    Sub insertionGraphiqueDansPowerPoint()
    'activate Microsoft Powerpoint Object Library
    Dim PPT As PowerPoint.Application
    Dim PptDoc As PowerPoint.Presentation
    Dim NbShpe As Byte

    Set PPT = CreateObject("Powerpoint.Application")
    PPT.Visible = True
    Set PptDoc = PPT.Presentations.Open("C:\myPresentation.ppt")

    ActiveSheet.ChartObjects(1).Copy 'copy first graph in active sheet
    PptDoc.Slides(3).Shapes.Paste 'paste in third slide

    NbShpe = PptDoc.Slides(3).Shapes.Count

    With PptDoc.Slides(3).Shapes(NbShpe)
    .Name = "monGraph"
    .Left = 150
    .Top = 100
    .Height = 300
    .Width = 400
    End With

    'PptDoc.Save
    'PptDoc.Close
    'PPT.Quit
    End Sub


    Regards ,
    michel

+ 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