PDA

View Full Version : Solved: Refering to a specific control in a class object



zagrijs
05-14-2013, 01:25 AM
I recently asked "What is the use of a class module" and received ad rem responses.

I read the article snb referred me to and follow the code.

I am using procedures where the properties of labels are changed at run time using snb's "Userform Method II". A reference to the control calling the procedure is passed to the shared procedure by means of a parameter. I can follow how snb referenced the controls in "Userform Method II".

However, I can not figure out how to reference the control calling the procedure using a class module.

Can somebody please explain?

Thanks in anticipation.

Z

snb
05-14-2013, 01:43 AM
If you step throught the code - F8 - after a label has been changed in the userform, you will see every step and evaluate the values of variables, properties of objects, etc.
I think that is the best way to get acqainted with what the code does.

zagrijs
05-14-2013, 02:29 AM
Thanks. I did it and I understand now what happens. I appreciate your patience.