JoshDG
JoshDG

Reputation: 3931

VBA Powerpoint Macro: Run in background

Can a macro run in the background whilst the user is using the presentation?

For example, some sort of auto-correct function or auto-format function>

Upvotes: 1

Views: 795

Answers (2)

Steve Rindsberg
Steve Rindsberg

Reputation: 14809

If I really needed to do something like this for some reason, I would probably add a form, put any code that needs to run concurrently in the form, have it run as part of the form's initialization subroutine, then from the main body of code, call the form modelessly.

Upvotes: 0

Pankaj Jaju
Pankaj Jaju

Reputation: 5471

This is very much possible. I have created a small demo to show how it can be done.

enter image description here

In this demo, I have placed a command button and whenever it is clicked (in presentation mode), it displays a message.

Upvotes: 1

Related Questions