Using Slide ID in VBA to hyperlink to a slide

  • Thread starter Thread starter Pendrome
  • Start date Start date
P

Pendrome

I cannot figure out how to use Slide ID to hyperlink to a slide instead of
using the slide's number. Can someone tell me how to change this:

ActivePresentation.SlideShowWindow.View.GotoSlide (2)

into a hyperlink by using the slide's ID (262)? Thank you!
 
You will need to use the FindBySlideID method

SlideIndex=ActivePresentation.Slides.FindBySlideID(262)
ActivePresentation.SlideShowWindow.View.GotoSlide (SlideIndex)
 
You need both for it to work, but you could combine it into one messy line
if you wanted to.

Watch for line breaks in your display, the area between the lines is one
line of code
 
Actually, neither of these answers are working for me. When I tried the last
one, I get an error message saying "Object doesn't support this property or
method." This is what my code is looking like:

--------------------------------------
Sub Homepage()

ActivePresentation.SlideShowWindow.View.GotoSlide(ActivePresentation.Slides.FindBySlideID(262))

End Sub
--------------------------------------
 
Hello,
I would like to hyperlink to specific slide in other power point file.
Does anyone know how how to do it?
Thanks,
Tamir
 
Back
Top