Resume Powerpoint Presentation after MsgBox

Zauberkind
2StarLounger
Posts: 141
Joined: 21 Oct 2011, 10:08

Resume Powerpoint Presentation after MsgBox

Post by Zauberkind »

Greetings,
I have built a PP presentation that uses VBA to do some processing, and shows a MsgBox to return information to the user.
That works as expected. Unfortunately, a little dialog box appears somewhere, with the possibility to click to continue the presentation.
Is there a (practical) way to short-circuit that programmatically?
Tia
Zk

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Resume Powerpoint Presentation after MsgBox

Post by Rudi »

What dialog are you referring to? Is it a built in dialog or msgbox that PPT shows?
If so, have you tried using the following line:

Code: Select all

Application.DisplayAlerts = ppAlertsNone
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

Zauberkind
2StarLounger
Posts: 141
Joined: 21 Oct 2011, 10:08

Re: Resume Powerpoint Presentation after MsgBox

Post by Zauberkind »

Hi Rudi,
it's a built-in dialog. I'm running in German, but the title is Bildschirmpräsentation (Screen Presentation), and the only option is Bildschirmpräsentation fortsetzen (Continue).
I've done some playing around with it, and it seems to be vaguely related to the state of the IDE window (open, closed, immediate, &c.). I haven't found any firm ground to stand on here.
If I find out more, I'll post it here. As usual, suggestions welcome.
Regards,
Zk

User avatar
StuartR
Administrator
Posts: 12611
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Resume Powerpoint Presentation after MsgBox

Post by StuartR »

Here's what that dialog box looks like in English, but I have no idea how you'd stop it appearing.
You do not have the required permissions to view the files attached to this post.
StuartR


User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Resume Powerpoint Presentation after MsgBox

Post by Rudi »

TX Stuart. that clarifies things....

Zauberkind, does it work if you just click the "X" to close the toolbar?
Apparently if you close the toolbar it deactivates it globally and will not appear again. I tested this with a presentation (not using VBA though), and when I ALT+TAB to switch between other windows and the running presentation the toolbar to resume did not reappear. Even when I closed PPT completely and tested again, the toolbar did not reappear.

To reset the toolbar (if you want it to be presented again), do the following:

1. Close PowerPoint 2010.
2. Open Windows Explorer.
3. Open the following folder: C:\Users\user_name\AppData\Roaming\Microsoft\PowerPoint
4. Select the file that is named PPT14.pcb. (PPT15.pcb for PPT2013)
5. On the File menu, click Delete.
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

Zauberkind
2StarLounger
Posts: 141
Joined: 21 Oct 2011, 10:08

Re: Resume Powerpoint Presentation after MsgBox

Post by Zauberkind »

Thanks Rudi,
In my case, the problem just went away, but I didn't understand why.
I checked C:\Users\user_name\AppData\Roaming\Microsoft\PowerPoint, and found PPT11.pcb (PPT2003).
At some point, I must have closed the box in frustration and achieved my own "final solution".
Insight is always good!
Regards,
Zk