PDA

View Full Version : [SOLVED:] New VBA tools may crash PPT if no file is open



RayKay
06-13-2023, 02:03 AM
Hi all

I've coded some tools (thanks to great coding advice & corrections from here), but noticed with some, if a PPT file isn't open, it freezes / crashes PowerPoint. Is there a code I can add to my each VBA so they only work if a file is open, and don't crash PPT if no file is open?

Thank you :hi:

Aussiebear
06-13-2023, 10:38 AM
May we see the existing code?

Paul_Hossler
06-13-2023, 10:48 AM
I'm guessing that your tools are in an addin




If Application.Presentations.Count = 0 Then Exit Sub