Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.43 KB

Word.Selection.SelectCurrentTabs.md

File metadata and controls

58 lines (36 loc) · 1.43 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Selection.SelectCurrentTabs method (Word)
vbawd10.chm158663177
vbawd10.chm158663177
Word.Selection.SelectCurrentTabs
38b0ba64-eedc-9ef5-5622-5499b50bbd3e
06/08/2017
medium

Selection.SelectCurrentTabs method (Word)

Extends the selection forward until a paragraph with different tab stops is encountered.

Syntax

expression. SelectCurrentTabs

expression Required. A variable that represents a Selection object.

Example

This example selects the second paragraph in the active document and then extends the selection to include all other paragraphs that have the same tab stops.

Set myRange = ActiveDocument.Paragraphs(2).Range 
myRange.Select 
Selection.SelectCurrentTabs

This example selects paragraphs that have the same tab stops and retrieves the position of the first tab stop. The example moves the selection to the next range of paragraphs that have the same tab stops. The example then adds the tab stop setting from the first group of paragraphs to the current selection.

With Selection 
 .SelectCurrentTabs 
 pos = .Paragraphs.TabStops(1).Position 
 .Collapse Direction:=wdCollapseEnd 
 .SelectCurrentTabs 
 .Paragraphs.TabStops.Add Position:=pos 
End With

See also

Selection Object

[!includeSupport and feedback]