Consulting

Results 1 to 3 of 3

Thread: Solved: Refering to a specific control in a class object

  1. #1
    VBAX Regular
    Joined
    Sep 2011
    Posts
    78
    Location

    Solved: Refering to a specific control in a class object

    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

  2. #2
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,645
    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.

  3. #3
    VBAX Regular
    Joined
    Sep 2011
    Posts
    78
    Location
    Thanks. I did it and I understand now what happens. I appreciate your patience.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •