I'm tried to use PowerPoint-VBA to handle some code exception/error, but I cannot trigger it successfully, even using the simplest example code from the tutorial.
The gif below shows despite I add "On Error" before 6/0 but it still shows divided by zero runtime error.
I've tried similar code on at least 3 different computer with different PowerPoint version 2013, 2016, 2019 respectively but found they all behaves the same.
I would like to know whether I missed something obvious or should I enable or turn on some sort of option in the setting?
Thanks.
The code sample that I use for the test is as below, this is just an example that I found on the net for testing.
Option Explicit
Sub UsingGotoLine()
On Error GoTo eh
Dim x As Long, y As Long
x = 6
y = 6 / 0
x = 7
Done:
Exit Sub
eh:
MsgBox "The following error occurred " & Err.Description
End Sub

