How do I call a function which is in a class module?
Printable View
How do I call a function which is in a class module?
Dim blah As New ClassName
blah.Functionname
Be sure you declared it as public and you can call it from your whole app
Actually, it's better to dim and create a new instance in separate lines:VB Code:
Dim blah As ClassName Set blah = New ClassName blah.Functionname