SetSelection Method (VBA Add-In Object Model)

Microsoft VBA

SetSelection Method

           

Sets the selection in the code pane.

Syntax

object.SetSelection(startline, startcol, endline, endcol)

The SetSelection syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
startline Required. A Long specifying the first line of the selection.
startcol Required. A Long specifying the first column of the selection.
endline Required. A Long specifying the last line of the selection.
endcol Required. A Long specifying the last column of the selection.