Using Slide ID in VBA to hyperlink to a slide

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!
 
J

John Wilson

You will need to use the FindBySlideID method

SlideIndex=ActivePresentation.Slides.FindBySlideID(262)
ActivePresentation.SlideShowWindow.View.GotoSlide (SlideIndex)
 
B

Bill Dilworth

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
 
P

Pendrome

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
--------------------------------------
 
Joined
Oct 4, 2012
Messages
1
Reaction score
0
Hello,
I would like to hyperlink to specific slide in other power point file.
Does anyone know how how to do it?
Thanks,
Tamir
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top