title | keywords | f1_keywords | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
SetSelection method (VBA Add-In Object Model) |
vbob6.chm104035 |
|
c6408c78-b41e-e0d7-1817-41f887ce2d50 |
12/06/2018 |
medium |
Sets the selection in the code pane.
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. |
- CodePane object
- Collections (Visual Basic Add-In Model)
- Visual Basic Add-in Model reference
- Visual Basic language reference
[!includeSupport and feedback]