(Solved) – Do regular VBA modules have something like a constructor?

(solved)-–-do-regular-vba-modules-have-something-like-a-constructor?

VBA classes allow code to be executed during instantiation, using the Class_Initialize procedure (constructor).

Is there a similar hook procedure for regular modules that allows Code to be executed when loading the module?

I would like to set non-constant variables that are used in multiple procedures / functions without making an explicit call to the “setter” procedure each time.

Leave a Reply

Your email address will not be published. Required fields are marked *