• Excel VBA to powerpoint (Office xp, w2000)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Excel VBA to powerpoint (Office xp, w2000)

    Author
    Topic
    #360038

    I have this code in excel…

    Sub ppt_drivers()
    Dim pptApp As Object
    Dim pptPres As Object
    Dim pptFile As String

    Set pptApp = New PowerPoint.Application
    pptApp.Visible = True
    Set pptPres = pptApp.Presentations.Open(“c:test.ppt”)

    pptPres.UpdateLinks

    ‘break links

    pptFile = InputBox(“Filename “)

    With pptPres
    .SaveAs Filename:=”c:” & pptFile
    .Close
    End With

    pptApp.Quit
    Set pptPres = Nothing

    End Sub

    From Excel I open a ppt file and update the links between Excel and ppt. The trouble is that i don’t know the code to break the links after they are updated. Does anyone know the code to make that happen. thanks

    Viewing 0 reply threads
    Author
    Replies
    • #541182

      Tough one. PPT doesn’t have a native method for this, and attempting to set the source to nothing doesn’t work; trying to change the type to msoPicture doesn’t work. (After the fact, I read Q222707.)

      • #541277

        ick!!! hmmm, ok. Is there a way I can make Excel have the focus, break the links manually, go back and resume saving and closing ppt in my code? thanks for the help

    Viewing 0 reply threads
    Reply To: Excel VBA to powerpoint (Office xp, w2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: