+ Reply to Thread
Results 1 to 1 of 1

Need help in updating power point charts from excel data

  1. #1
    Registered User
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Need help in updating power point charts from excel data

    Hi,
    I am struggling with updating my power point charts with data from excel ranges. I am working on power point 2007. Below is my code. I am getting an error at set objdatasheet line saying object does not support this property or method. Any help would be appreciated. Also this is the firsttime I am posting this kind of question, hence please excuse if i break any forum.

    Public Sub DTMB()
    Set pptApp = CreateObject("PowerPoint.Application")
    Set pptApp = CreateObject("PowerPoint.Application")
    pptApp.Presentations(1).Slides(pptApp.ActivePresentation.Slides.Count).Select
    pptApp.ActiveWindow.ViewType = ppViewSlideSorter
    pptApp.ActiveWindow.View.Paste
    pptApp.ActiveWindow.ViewType = ppViewNormal
    pptApp.Presentations(1).Slides(pptApp.ActivePresentation.Slides.Count).Select

    Range("A16:F20").Select
    Selection.Copy
    Set pptprs = pptApp.ActivePresentation
    Set objGraph = pptprs.Slides(pptApp.ActivePresentation.Slides.Count).Shapes("Object 1").OLEFormat.Object.Application
    ' pointer to graphs data sheet
    Set objdatasheet = objGraph.Datasheet
    objdatasheet.Range("00").Paste


    Application.CutCopyMode = False

    End Sub
    Last edited by alexihimanshu; 03-09-2013 at 01:56 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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