Consulting

Results 1 to 3 of 3

Thread: VBA to update links in presentation

  1. #1

    VBA to update links in presentation

    I would like the following code to open my powerpoint file and update the multiple (Excel chart) links in the file. It opens, but the UpdateLinks command does not work. Help?

    Private Sub Command165_Click()
    Dim ppt As Object

    Set ppt = CreateObject("PowerPoint.Application")
    With ppt
    .Visible = True
    .Presentations.Open "MyFilePath.ppt"
    .ActivePresentation.UpdateLinks
    End With
    Set ppt = Nothing

    End Sub

  2. #2
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,094
    Location
    Are you using version 2007?
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  3. #3
    I am using 2003. I discovered the code does work provided I have the link refresh properties set to "Automatic" and not "Manual". However, this setting prompts the "Refresh Links" dialog box whenever someone opens the ppt file.

    Can I use code to refresh the links if the properties are set to "Manual"?

Posting Permissions

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