Belešku
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da se prijavite ili da promenite direktorijume.
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da promenite direktorijume.
Turns selection extension on or off.
Syntax
expression. SelectionExtend( _Extend_, _Add_ )
expression A variable that represents an Application object.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| Extend | Optional | Boolean | True if extend mode is active. (If extend mode is active, all items between the selection and the active item become part of the selection.) If Extend is True, Add is ignored. The default value is False. |
| Add | Optional | Boolean | True if add mode is active. (If add mode is active, only the active item is added to the selection.) The default value is False. |
Return value
Boolean
Example
The following example adds active item to the selection.
Sub Selection_Extend()
ViewApply Name:="&Gantt Chart"
SelectionExtend Extend:=False, Add:=True
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.