Range.GoTo procedure builder

Range.GoTo (Word)

Returns a Range object that represents the start position of the specified item, such as a page, bookmark, or field.

The following example moves the range up two lines.

GoTo (What, Which, Count, Name)

ActiveDocument.Range.GoTo What:=wdGoToLine, Which:=wdGoToPrevious, Count:=2

Arguments

Optional arguments

The following arguments are optional

What - The kind of item to which the range is moved. Can be one of the wdGoToItem constants

Which - The item to which the range is moved. Can be one of the wdGoToDirection constants

Count - The number of the item in the document. The default value is 1. Only positive values are valid. To specify an item that precedes the range, use wdGoToPrevious as the Which argument and specify a Count value

Name - If the What argument is wdGoToBookmark, wdGoToComment, wdGoToField, or wdGoToObject, this argument specifies a name. Only positive values are valid. To specify an item that precedes the range, use wdGoToPrevious as the Which argument and specify a Count value