9.0

202
Sub Main
Debug
.Print "Before Demo"
MacroRunThis "MsgBox
""Hello"""
Debug
.Print "After Demo"
End
Sub
Me Object
Syntax
Me
Group
Object
Description
Me references the current macro/module. It can be used like any other object variable, except that it's reference
can't be changed.
See Also: Set
.
Example
Sub Main
DoIt
Me.DoIt ' calls the same sub
End
Sub
Sub
DoIt
MsgBox
"Hello"
End
Sub
Method definition
An object provides methods and properties. Methods can be called as subs (the return value is ignored), or used
as functions (the return value is used).
If the method name contains characters that are not legal in a name
, surround the method name with [].
App.[Title$]
Mid$ Function/Assignment
Syntax
Mid[$](S$, Index[, Len])
-or-