J
John
Hello.
Found this great code to randomize a slide show, but it works too good.
Is there any way to modify it so that it does NOT randomize the first two
slides?
(Slide 1 has a title screen and Slide 2 has the rules screen, but when I
run the macro, they get randomized and wind up floating around the
presentation
I changed the "i= 1..." to "i=2" but that didn't help.
I was just going to add a button that appears on slide 2 that runs the
macro.
Thanks for any help and suggestions!
John
______________
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
Found this great code to randomize a slide show, but it works too good.
Is there any way to modify it so that it does NOT randomize the first two
slides?
(Slide 1 has a title screen and Slide 2 has the rules screen, but when I
run the macro, they get randomized and wind up floating around the
presentation

I changed the "i= 1..." to "i=2" but that didn't help.
I was just going to add a button that appears on slide 2 that runs the
macro.
Thanks for any help and suggestions!
John
______________
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