+ Reply to Thread
Results 1 to 2 of 2

Updating Powerpoint links using VBA code

  1. #1
    Registered User
    Join Date
    03-22-2011
    Location
    India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    11

    Updating Powerpoint links using VBA code

    Hi,

    I am using a code to update links in powerpoint however getting a compile error which says "Next without For".

    Sub linkupdate()
    Dim osld As Slide
    Dim oshp As Shape
    For Each osld In ActivePresentation.Slides
    For Each oshp In osld.Shapes
    If oshp.Type = msoLinkedOLEObject Then
    oshp.LinkFormat.Update
    Next oshp
    Next osld
    End Sub


    Any help would be appreciated.

    Thanks!

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Updating Powerpoint links using VBA code

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ 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