Me
Language Items List
Definition:
Allows you to refer to the specific instance in which the code is currently
running.
The special Me reserved word acts like an implicitly declared variable. It is
automatically available to all methods (Sub or Function) in a particular
object, and always refers to the object where code is currently running.
The reserved word Me is useful when passing information about the object where
code is currently running to a method in another module. For example, assume
that you have the procedure shown below in a module:
Sub ChangeFormFont(form As Form)
form.Font = CurrentFont
End Sub
You can call the method and pass the current instance of the form as an
argument in one of the procedures in your form by using the following statement.
ChangeFormFont(Me)
You can use Me as you would any other object reference.
See Also:
Strictly (Dim's use of the Strictly keyword)