I have numerous modules that have the SAME section of code in them to carry out the same task.
Before I take what I’m doing any further, just want to clarify “Best Vba” practice.
Is it best/better to keep those sections of code in EACH individual module or have them in a separate module and “Call” them as and when required?
Having them in a separate module, then calling them when required seems to me to be somewhat similar to using,
“GoTo line?:” (Spaghetti code).
What is the advice?
Before I take what I’m doing any further, just want to clarify “Best Vba” practice.
Is it best/better to keep those sections of code in EACH individual module or have them in a separate module and “Call” them as and when required?
Having them in a separate module, then calling them when required seems to me to be somewhat similar to using,
“GoTo line?:” (Spaghetti code).
What is the advice?