Application.Watches Property (Excel)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a Watches object representing a range which is tracked when the worksheet is recalculated.

expression .Watches

expression A variable that represents an Application object.

This example creates a summation formula in cell A3, and then adds this cell to the Watch Window.

Sub AddWatch() 
 With Application 
 .Range("A1").Formula = 1 
 .Range("A2").Formula = 2 
 .Range("A3").Formula = "=Sum(A1:A2)" 
 .Watches.Add Source:=ActiveCell 
 End With 
End Sub