Consulting

Results 1 to 6 of 6

Thread: Random Slide Jump with limit- Help

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Random Slide Jump with limit- Help

    I'm very much a newbie with VBA. I'm a teacher and I'm using a VBA code in a PPT program I've written for a special needs student. I learned how to use this code to jump to a random slide. How can I specify the number of times the random jump happens before the slide show moves to a specific (non randomized) slide?

    Here's the code:
    Sub randjump()
    randomize
    Dim Inum As Integer
    Inum=Int(highest # in range-(lowest # in range -1)*rnd+lowest # in range)
    ActivePresentation.SlideShowWindow.View.GotoSlide(Inum)
    End Sub
    Thanks for the help!

    Rob
    Last edited by Aussiebear; 04-28-2023 at 08:58 PM. Reason: Adjusted the code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •