Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.44 KB

setselection-method-vba-add-in-object-model.md

File metadata and controls

37 lines (27 loc) · 1.44 KB
title keywords f1_keywords ms.assetid ms.date ms.localizationpriority
SetSelection method (VBA Add-In Object Model)
vbob6.chm104035
vbob6.chm104035
c6408c78-b41e-e0d7-1817-41f887ce2d50
12/06/2018
medium

SetSelection method (VBA Add-In Object Model)

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.

See also

[!includeSupport and feedback]