Compartilhar via


Watches.Add Method

Adds a range which is tracked when the worksheet is recalculated. Returns a Watch object.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Add ( _
    Source As Object _
) As Watch
'Usage
Dim instance As Watches
Dim Source As Object
Dim returnValue As Watch

returnValue = instance.Add(Source)
Watch Add(
    Object Source
)

Parameters

  • Source
    Type: System.Object

    Required Object. The source for the range.

Return Value

Type: Microsoft.Office.Interop.Excel.Watch

See Also

Reference

Watches Interface

Watches Members

Microsoft.Office.Interop.Excel Namespace