title: Ending a macro within a called subroutine
body: <p>I have a macro (CMOV) which calls another subroutine (CMOV2) that checks for a condition which, if met, displays a vbokaycancel message box which i set equal to a variable called irep, </p>
  
  <p>I want it if someone hits cancel  (irep=2) for it to call off the whole macro. That is not only exit CMOV2 but also exit CMOV.</p>
  
  <p>Currently, I have</p>
  
  <pre><code>If jackal(1) &lt;&gt; vbNullString Then
      irep = MsgBox("Warning: You have a selection with two swingarms" _
            &amp; " that are on the same radius and cannot swing past one another " _
            &amp; Chr$(13) &amp; " Choose Okay if you still wish to proceed otherwise " _
            &amp; " choose Cancel to revise your order" &amp; Chr$(13) &amp; "         " _
            &amp; jackal(1) &amp; Chr$(13) &amp; "      " &amp; jackal(2), vbOKCancel)
      **If irep = 2 Then
      Exit Sub**
      Else: End If
      Else: End If
  End Sub
  </code></pre>
  
  <p>at the end of the subroutine.  The issue is that even though this exits the CMOV2, CMOV continues to run. Is there a way to end this sub, and the one which called it?</p>