G
Guest
I am new to Functions and changing some Subs to Functions to clean up code.
Where I have an Exit Sub and want to quit the code at that point, I'm ok
with Subs. The code stops and I can set focus to a control.
However, if I substitute Exit Function at that same point, the code
continues. No stopping, no set focus to a control. Not what I want.
Is there another way to stop the code at that point? These are private
functions; I've not attempted to change an Exit Sub for a public function.
Can I assume the remedy is the same private/public?
Where I have an Exit Sub and want to quit the code at that point, I'm ok
with Subs. The code stops and I can set focus to a control.
However, if I substitute Exit Function at that same point, the code
continues. No stopping, no set focus to a control. Not what I want.
Is there another way to stop the code at that point? These are private
functions; I've not attempted to change an Exit Sub for a public function.
Can I assume the remedy is the same private/public?