I'm hoping someone can tell me if there is any performance benefit in
my applications between distinguishing a code routine as a Function or
a Sub or if there is a performance benefit between identiying a
Function as a Function or a Private Function (or Sub as a Sub or a
Private Sub) in code modules.
I understand that using Private Functions or Private Subs limits the
scope from which it can be called, but I'm wondering if there is any
speed or overhead benefit in making the distinction.
I know I can't call a Sub using "=SubName() " in the event procedure of
a control, only = "=FunctionName( )", so I just got in the habit of
labeling everything as a Function instead.
Thanks,
lq
my applications between distinguishing a code routine as a Function or
a Sub or if there is a performance benefit between identiying a
Function as a Function or a Private Function (or Sub as a Sub or a
Private Sub) in code modules.
I understand that using Private Functions or Private Subs limits the
scope from which it can be called, but I'm wondering if there is any
speed or overhead benefit in making the distinction.
I know I can't call a Sub using "=SubName() " in the event procedure of
a control, only = "=FunctionName( )", so I just got in the habit of
labeling everything as a Function instead.
Thanks,
lq
Comment