Macros code to shuffle selected slides and also to pick a random slide

marcus allen 0 Reputation points
2024-09-08T08:55:03.4866667+00:00

Hi All,

I have made a powerpoint slideshow which I am going to use to randomly pick a slide.

I have a blank first slide with an audio file inserted which plays across the slideshow then two title slides then 24 slides with names on. I then have repeated slides of these name slides which are hidden and a final slide with is unhidden and this has a box to click on which activates the random macros to pick a random slide from the hidden 24 slides (they are hidden as I have to delete and replace some slides through the course of using it and this way it doesn't affect the unhidden slides).

This worked fine but the audio file stopped playing when the random slide was picked so I added a different audio file just to the side of each hidden slide which worked ok but I also wanted to add a shuffle slides code to my macros to shuffle all the hidden slides each time the random macros is activated however my problem is that when I add the code to shuffle the slides under the existing code that picks a random slide then the audio file that I added to each hidden slide doesn't play after the random slide is picked.

Currently the picker works fine but at the moment the shuffle part doesn't work. I only want to shuffle slides 28 to 51.

This is my random picker powerpoint along with all files and font.

https://www.transfernow.net/dl/202409077NUjU9c7

Thanks in advance.

Marcus.

PowerPoint
PowerPoint
A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.
290 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,891 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.