jondecker76
asked on
Is it possible to import an Module's namespace into a form's code? (So I don't have to type module1.this() for example)
I'm starting to use a lot of functions in modules. I find that it would be nice to somehow "include" a module into a form, so that its functions can be accessed without having to type module1. before every function I need to use.
I know its possible, just not how to do it, and searching didn't get me too far as I'm unsure of the terminology.
thanks
I know its possible, just not how to do it, and searching didn't get me too far as I'm unsure of the terminology.
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks - I would have never guessed this
Public MyFunctionName(sSomeParame
or
Public MyFunctionName() as String
or
Public Sub MySubName()
The same applies to application-wide variables. You can create a Globals module with global variables. Below is an example of a Globals module:
Open in new window