Syntax

expression.Goto(Reference, Scroll)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Reference Optional Variant The destination. Can be a object, a string that contains a cell reference in R1C1-style notation, or a string that contains a Visual Basic procedure name. If this argument is omitted, the destination is the last range you used the Goto method to select.
Scroll Optional Variant True to scroll through the window so that the upper-left corner of the range appears in the upper-left corner of the window. False to not scroll through the window. The default is False.

Remarks

This method differs from the method in the following ways:

Example

This example selects cell A154 on Sheet1 and then scrolls through the worksheet to display the range.

Visual Basic for Applications
Application.Goto Reference:=Worksheets("Sheet1").Range("A154"), _ scroll:=True
Go To Method goto GOTO METHOD GoTo method? Highlight a named cell in another workbook? Jump to a certain cell? Method for executing a procedure?

See also: