title: On Error Resume Next Not Working
body: <p>So I have created a rather large macro which creates powerpoint presentations for my company. I would like to be able to run it for 2 different regions using:</p>
  
  <pre><code>For each sRegion
  
  MyMacro(sRegion)
  
  Next
  </code></pre>
  
  <p>There are some lines I would like to skip. For the first run MyMacro works perfectly and the error handler skips the steps. However for the next sRegion the error handler doesn't work.</p>
  
  <p>Even if I run through it line by line going through the on error resume next statement it doesn't work and actually just stops the macro.</p>
  
  <p>I'll post the code where it is breaking, though it is completely irrelevant (on a second run through, works fine when the macro is called first)</p>
  
  <pre><code>On Error Resume Next
  
  PPPres.Slides(19).Moveto ToPos:=12
  PPPres.Slides(20).Moveto ToPos:=13
  PPPres.Slides(21).Moveto ToPos:=14
  PPPres.Slides(22).Moveto ToPos:=15
  PPPres.Slides(23).Moveto ToPos:=16
  
  On Error GoTo 0
  </code></pre>
  
  <p>It will completely disregard the on error and throw up an error and stop the macro.</p>
  
  <p>Before anyone suggests yes I have checked whether Error Trapping is on 'Break on Unhandled Errors' and it is</p>
  
  <p>Anyone had this issue before or know a solution?</p>