Makro bei Folienübergang automatisch ausführen

%3CLINGO-SUB%20id%3D%22lingo-sub-2742280%22%20slang%3D%22de-DE%22%3ERun%20macro%20automatically%20on%20slide%20transition%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2742280%22%20slang%3D%22de-DE%22%3E%3CP%3EHello%20dear%20experts%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20the%20following%20macro%20that%20randomly%20selects%20the%20next%20slide%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3ESub%20Random()%3C%2FP%3E%3CP%3EActivePresentation.SlideShowWindow.View.GotoSlide%20Int(Rnd%20*%20ActivePresentation.Slides.Count)%20%2B%201%3C%2FP%3E%3CP%3EEnd%20Sub%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnfortunately%2C%20this%20only%20works%20if%20I%20trigger%20the%20macro%20manually%20via%20an%20interactive%20button.%3CBR%20%2F%3E%3CBR%20%2F%3EHowever%2C%20I%20would%20like%20to%20start%20the%20macro%20automatically%20at%20the%20end%20of%20a%20slide%20(as%20part%20of%20the%20click%20order)%2C%20so%20that%20the%20slide%20transition%20does%20not%20lead%20to%20the%20next%2C%20but%20to%20a%20random%20slide.%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20far%20as%20macros%20are%20concerned%2C%20I%20am%20a%20bloody%20beginner%20and%20please%20take%20this%20into%20account%20when%20answering...%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fhtml%2F%408341BD79091AF36AA2A09063B554B5CD%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hallo liebe Experten,

 

ich habe folgendes Makro, das mir die nächste Folie zufällig auswählt:

Sub Random()

ActivePresentation.SlideShowWindow.View.GotoSlide Int(Rnd * ActivePresentation.Slides.Count) + 1

End Sub

 

Das funktioniert aber leider nur, wenn ich das Makro über eine Interaktive Schaltfläche manuel auslöse.

Ich würde das Makro aber gerne am Ende einer Folie (als Teil der Klickreihenfolge) automatisch starten, so dass der Folienübergang nicht zur nächsten, sondern zu einer zufälligen Folie führt.

Was Makros betrifft bin ich blutiger Anfänger und bitte dies bei Antworten zu berücksichtigen...:smile:

Vielen Dank im Voraus!

0 Replies