问题
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>
回答1:
This is very much possible. I have created a small demo to show how it can be done.
In this demo, I have placed a command button and whenever it is clicked (in presentation mode), it displays a message.
回答2:
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.
来源:https://stackoverflow.com/questions/21748785/vba-powerpoint-macro-run-in-background