Is there a way to delay a VBA Macro without pausing Animations in Power Point?
Ok, so I'm making a Game in Power Point. The problem is that I made a gameplay loop where as the player makes choices and moves foward via slides, but some of these slides can be re-used to use less of them.
How the game works/Is structured: The problem is that time/timing is essential to the game's core, and I can't use the Advance Slides Feature because I need the player to go back to a previous Slide after X amount of time. In fact I don't know why Microsoft didn't implemented this feature before themselves....
Photo of the feature that I'm trying to create/implement into my game: So to send the player to X Slide after Y amount of time I've tried using functions that "Wait" before executing a macro such as:
The problem with these functions is that they literally pause the whole Power Point Presentation(I want Animations to keep playing while the macro does it's job.), and since I'm making a Power Point Game, I don't want it to do that because it messes with the experience and the flow of the Game.
So is there a way to make a Macro or a Function that only tracks time without pausing the animations in PPT, and after X amount of time executes code? Or perhaps fusing functions and macros into one so it can ease my work?
Something like this:
Sub GameLoop() SlideShowWindows(1).View.GotoSlide (X) Waitfor 3If SlideShowWindows(1).View.CurrentShowPosition = X ThenSlideShowWindows(1).View.GotoSlide (Y) ElseEnd IfEnd Sub
It has been years since I last used one, but it worked as follows
1. the user started a macDoIt macro that processed thousands of database updates.
2. The macDoIt started by opening a "Modeless" user form named "frmMonitorProgress"
3. Since frmMonitorProgress was modeless is ran concurrently with macDoIt,
Once every minute frmMonitorProgress would update a form text box.
the form looked something like this
Records Processed 1 through 553
Process paused at record 553
Click here to Pause processing.
Click here to restart processing.
Click here to unload the form and cancel further processing.
If you think something like that would work for you I could dig up the code.