PPT command button link to other pres

I'm having a hard time adding "hyperlink to another PPT presentation" functionality to a command button. I can add it to a text-based hyperlink easily, but I can't seem to make it happen with a command button. I want to use a command button because I want to control to which slide in this second presentation I go to based on a global variable set earlier.

I managed to successfully use Presentations.open("second filename.ppt") but I have been unable to 1) open it in slideshow view and 2)navigate to a slide in that linked pres that is not slide 1.

Any suggestions out there Thank you!



Answer this question

PPT command button link to other pres

  • Mendelt

    This seems to do want you want:

    Public goSlide As Integer

    Private Sub CommandButton1_Click()
    Dim p As Presentation
    Set p = Presentations.Open("second presentation.ppt")

    goSlide = 2

    With p.SlideShowSettings
    .StartingSlide = goSlide
    .Run
    End With

    End Sub

  • PPT command button link to other pres