Link to home
Start Free TrialLog in
Avatar of brothertruffle880
brothertruffle880Flag for United States of America

asked on

PowerPoint 2010 Keyboard Shortcut - GO TO specific slide while editing a presentation

While a person is editing a slide, what is the keyboard shortcut to navigate to a particular slide.  F5 does not work, CTRL G doesn't work.
When I'm on slide 2, I want to go to slide 33.  How to do it quickly?
Avatar of Rgonzo1971
Rgonzo1971

Hi,

There's no such function in Powerpoint

pls try this macro

Sub GoToMacro()
Set f = ActivePresentation
Result = InputBox("Enter the number of the slide", "Go To Slide #")
Do While Result <> ""
    If IsNumeric(Result) Then
        If Result >= 1 And Result <= ActivePresentation.Slides.Count Then
            ActivePresentation.Slides.Item(CDbl(Result)).Select
            Exit Do
        Else
        MsgBox "Please enter a number between 1 and " & ActivePresentation.Slides.Count
        End If
    Else
    MsgBox "Please enter a number"
    End If
Result = InputBox("Enter the number of the slide", "Go To Slide #")
Loop
End Sub

Open in new window

Regards
Avatar of brothertruffle880

ASKER

Hi  Rgonzo1971
What kind of variable should "f"  be declared as?

One more question:  What does  CDbl mean in the context below?

ActivePresentation.Slides.Item(CDbl(Result)).Select
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Probably the quickest way is to switch to slide sorter view and double click the slide needed.

If you are using code you should check that the number is valid

Sub gotoslide()
Dim strNum As String
Do
strNum = InputBox("Slide to select.")
Loop Until IsNumeric(strNum) And CLng(strNum) > 0 And _
CLng(strNum) <= ActivePresentation.Slides.Count
ActivePresentation.Slides(CLng(strNum)).Select
End Sub