Excel equivalent of a "this" pointer...

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

I'm sure this has been posted before, but searching the group for
instances of "this" has proven to be a daunting task. :-) Do any of
you know if there is the equivalent of a "this" pointer in a VBA
class? That is, a reference to the current instance of a class?

Thanks!
Dave
 
Use the "Me" reference. E.g.,

Me.Name = "ABC"


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
 
Me refers to the worksheet class, the userform class, the ThisWorkbook
class, so may be what you want.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Dave said:
I'm sure this has been posted before, but searching the group for
instances of "this" has proven to be a daunting task. :-) Do any of
you know if there is the equivalent of a "this" pointer in a VBA
class? That is, a reference to the current instance of a class?

Try Me.
 

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