LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default What does the me. preface do?

Dave,

The "Me" identifier creates a reference to the class which
contains it. So if you have code in a class module, Me refers to
that instance of the class. If you have code behind a userform, Me
refers to that instance of the userform. Used in the ThisWorkbook
code module, Me is the same as ThisWorkbook.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"David Reid" wrote in message
...
Just curious as to understand what the me. preface
practically does in VBA code.

I have code that is essentially

me.textbox1.value = me.spinbutton1.value.

the code appears to work the same with out the me
preface, just wanted to understand what the me does.

Thanks
Dave



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"