Can you use `Exit Sub` within a nested `Sub`?

Responsive Ad Header

Question

Grade: Education Subject: Support
Can you use `Exit Sub` within a nested `Sub`?
Asked by:
45 Viewed 45 Answers
Responsive Ad After Question

Answer (45)

Best Answer
(246)
Yes, you can absolutely use `Exit Sub` within a nested `Sub` (a `Sub` defined inside another `Sub`). The `Exit Sub` will terminate the current nested `Sub` immediately, and the execution will resume at the point where the nested `Sub` was called.