none
How to move to a certain slide using macro (VBA)? RRS feed

  • Question

  • I want to make a slide (just said that it is slide 3) that have a question and if its answered correctly, will move to slide 6. Otherwise, will move to slide 4. Can anybody solve this?
    Sunday, April 14, 2013 12:44 PM

Answers

  • try to use this code

    sub anwser ()
    
    dim anwserq as integer
    
    anwserq = (inputbox "type '1'")
    
    if anwserq = 1 then
    SlideShowWindows(1).View.GotoSlide 6
    end if 
    
    end sub

    • Marked as answer by SonicSkyJ12 Tuesday, April 16, 2013 10:06 AM
    Monday, April 15, 2013 7:02 PM

All replies

  • try to use this code

    sub anwser ()
    
    dim anwserq as integer
    
    anwserq = (inputbox "type '1'")
    
    if anwserq = 1 then
    SlideShowWindows(1).View.GotoSlide 6
    end if 
    
    end sub

    • Marked as answer by SonicSkyJ12 Tuesday, April 16, 2013 10:06 AM
    Monday, April 15, 2013 7:02 PM
  • It runs really well, thx
    Tuesday, April 16, 2013 10:06 AM