Results 1 to 5 of 5

Thread: How can you name a slide and then refer to it by name in a hyperlink?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,096
    Location
    The SlideiD should never change.

    If the SlideIndex changes the iD takes preference and so the link will work even if the slide is moved to a new position.
    You probably do not need to specify the title.

    So, to create a link to the CURRENT slide 2

    With oshp.ActionSettings(ppMouseClick)
        .Action = ppActionHyperlink
        .Hyperlink.SubAddress = CStr(ActivePresentation.Slides(2).SlideID) & ",2,Title"
    End With
    OR more generic

    With oshp.ActionSettings(ppMouseClick)
        .Action = ppActionHyperlink
        .Hyperlink.SubAddress = CStr(ActivePresentation.Slides(2).SlideID) _
        & "," & CStr(ActivePresentation.Slides(rs_AbsolutePosition + 1).SlideIndex) & ",Title "
    End With
    Last edited by Aussiebear; 02-27-2025 at 01:14 PM.
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

Posting Permissions

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