How to Randomize Only VISIBLE Slides, Not Hidden Slides??

  • Hello all, I'm trying to make my code only randomize non-hidden slides. I know this forum is primarily for Excel, but since there is so much VBA expertise here I was hoping someone could easily identify my problem. I'm a noobie to VBA. I've just tried to figure it out logically, but I'm afraid I lack fundamental coding knowledge to solve this problem.

    My experiment PowerPoint is attached.

    What am I doing wrong?

  • Welcome to the Forum. Please read the Forum Rules to understand how the Forum works and why I have added Code Tags to your post

    All VBA code posted in the forum must be wrapped in code tags, which you omitted, including single-line code snippets.Be sure to use them in future posts.

    How to use code tags

    Just highlight all of the code and press the <> in the post menu above button to add the code tags.


    Also, choose the correct Forum and there is no attachcment

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!