Combine Powerpoints and make random slide show


  1. Posts : 299
    Win 7 Professional 32-bit
       #1

    How to Randomize order of a PowerPoint presentation (Office 2007-2010)


    I have a set of 10 Powerpoint presentations that I combined into one presentation with Histology image identification questions. I wanted to play the slide show in a random order so that I don't know what image comes next and I can really test myself.

    Here's how to do it

    From within the Powerpoint you want to randomize Alt+F11 to open Visual Basic. Make sure your Powerpoint is highlighted on left-hand side. Click Insert => Module

    copy and paste the following

    Code:
    Sub sort_rand()
    
        Dim i As Integer
        Dim myvalue As Integer
        Dim islides As Integer
        islides = ActivePresentation.Slides.Count
        For i = 1 To ActivePresentation.Slides.Count
            myvalue = Int((i * Rnd) + 1)
            ActiveWindow.ViewType = ppViewSlideSorter
            ActivePresentation.Slides(myvalue).Select
            ActiveWindow.Selection.Cut
            ActivePresentation.Slides(islides - 1).Select
            ActiveWindow.View.Paste
        Next
    
    End Sub
    Click Run, then Run again or hit F5.

    Voila.
    Last edited by nabilalk; 10 Jul 2011 at 13:34. Reason: Solution
      My Computer


  2. Posts : 269
    Windows 7 Home Premium 64 bit
       #2

    Cool - thanks a lot!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:20.
Find Us