How do I get the NAME of the class instance

A

ArtDeFart32

Not sure if I'm using the correct termonology but...

I have a Class module named "My_Class" and a Userform module named
"Userform1".

In Userform1, there is the following:

Dim Test_1 As New My_Class

sub doit

Test_1.runTest

end sub

In Class Module My_Class, there is the following:

sub runTest()

end sub

The question is: What code can I add to "runTest" that can find the name
"Test_1" ?

The code will be protected.

Seems simple and probably is, but right now I'm in my bozo mode.

Thanks for any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top