Bewerken

Delen via


_Application.Caller[Object] Property

Definition

Returns information about how Visual Basic was called (for more information, see the Remarks section).

public:
 property System::Object ^ Caller[System::Object ^] { System::Object ^ get(System::Object ^ Index); };
public object Caller[object Index] { get; }
Public ReadOnly Property Caller(Optional Index As Object) As Object

Parameters

Index
Object

Optional Object. An index to the array. This argument is used only when the property returns an array (for more information, see the Remarks section).

Property Value

Remarks

This property returns information about how Visual Basic was called, as shown in the following table.

A custom function entered in a single cellA Range object specifying that cell
A custom function that is part of an array formula in a range of cellsA Range object specifying that range of cells
An Auto_Open, Auto_Close, Auto_Activate, or Auto_Deactivate macroThe name of the document as text
A macro set by either the OnDoubleClick or OnEntry propertyThe name of the chart object identifier or cell reference (if applicable) to which the macro applies
The Macro dialog box (Tools menu), or any caller not described aboveThe #REF! error value

Applies to