Navigating To A Slide Through the Slide ID

D

David Tay

How can I write a macro so that a click on a certain slide object
cause another slide to be viewed based on its slide id?

Thanks.
 
C

Chirag

The following macro should help you get started:

---
Sub GotoSlideById(ByVal SlideId As Long)
Dim Sld As Slide

With SlideShowWindows(1)
Set Sld = .Presentation.Slides.FindBySlideID(SlideId)
If Not (Sld Is Nothing) Then
.View.GotoSlide Sld.SlideIndex
End If
End With
End Sub
---

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 
Top