Me?

  • Thread starter Thread starter nc
  • Start date Start date
nc, here is an answer from a post by Chip Pearson on the subject

The 'Me' keyword always refers to the instance of the class in
which it is contains. For example, if it appears in the
ThisWorkbook module, it refers to ThisWorkbook. If it appears in
Class1, it refers to the instance of Class1 when the line of code
is executed.

'Me' is only valid in class modules (including userforms,
classes, ThisWorkbook and the Sheet code modules). It is not
valid in a standard module.
--
Cordially,
Chip Pearson




--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
Me refers to the containing object, probably a userform in this case.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Me refers to the thing/object that holds the code.

In this case, it refers to that Userform.

You may see it in a worksheet module, too. In that case, it refers to the
worksheet that owns the code.

Same thing in ThisWorkbook--it refers to the workbook owning the code.
 

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

Back
Top