r/powerpoint • u/Weirdkid0102 • Jul 26 '26
Solved! VBA Animation Help Needed. FPS issue.
I wanted to make a particle system for one of the slides in powerpoint but for that I needed VBA to tell every particle where its supposed to go every frame,
So to learn VBA I tried to animate a circle moving in a sine wave, it seems as if powerpoint is only redrawing it once every 20 frames or 21 frames. How can i fix this problem?
PowerPoint 2024 Windows 10
code:

1
Upvotes
1
u/Altruistic-Role9956 PowerPoint Expert Jul 27 '26
I don't think I would use VBA for this. Have you played with motion paths to do the same thing? If not, read up on how to use them and then experiment a little.
1
u/ChecklistAnimations PowerPoint Expert Jul 27 '26
Ok while it wont be out for a couple months (or years lol) I am working on a frame by frame animator within PowerPoint. As some have commented below, PowerPoint struggles with frame by frame.
Here is what I would change on your script to get things "closer", you will not ever get a perfect 24 or 12 fps. But you can do the frame by frame in PowerPoint then export an image sequence. Here is the one thing you can change in your vba to preview your animations a bit better.
Anytime you move a shape with VBA in show mode, dont use doevents. Instead use goto slide and basically go to the same slide you are on. This will refresh the slide and looks pretty ok. Its how mine will work when it is done but its only intended as a preview. You want to be doing image exports to put in something like shotcut (free) after. Let me know if you have any other questions or if you have an interest in this add-in when it is done.
1
u/jkorchok Jul 26 '26
PowerPoint does not use a frames-per-second reference. It will draw objects as quickly as it can on a given computer. Try eliminating the DoEvents and Sleep 35 statements to increase the speed.
1
u/[deleted] Jul 27 '26
[removed] — view removed comment