Syntax
| CallByName(Obj,ProcName,CallType,[expr[, ...]])
| |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Call an Obj's method/property, ProcName, by name. Pass the exprs to the method/property.
| |||||||||||||||||||||||||
See Also
| ||||||||||||||||||||||||||
Example
| Sub Main
On Error Resume Next
CallByName Err, "Raise", vbMethod, 1
Debug.Print CallByName(Err, "Number", vbGet) ' 1
End Sub
|