ListLevel.TabPosition property (Word)

Returns or sets the tab position for the specified ListLevel object. Read/write Single.


expression. TabPosition

expression An expression that returns a 'ListLevel' object.


Because the ListLevel object does not have a default tab setting, the TabPosition property always returns a value of 999999 or wdUndefined, unless you set the property to a value.


This example sets each list level number so that it is indented 0.5 inch (36 points) from the previous level, and the tab is set at 0.25 inch (18 points) from the number.

r = 0 
For Each lev In ListGalleries(wdOutlineNumberGallery) _ 
 lev.Alignment = wdListLevelAlignLeft 
 lev.NumberPosition = r 
 lev.TrailingCharacter = wdTrailingTab 
 lev.TabPosition = r + 18 
 r = r + 36 
Next lev

This example sets the variable myltemp to the first numbered list template, and then it sets the tab position at one inch. The list template is then applied to the selection.

Set myltemp = ListGalleries(wdNumberGallery).ListTemplates(1) 
myltemp.ListLevels(1).TabPosition = InchesToPoints(1) 
Selection.Range.ListFormat.ApplyListTemplate ListTemplate:=myltemp

See also

ListLevel Object

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.