PDA

View Full Version : A Selection method that simulates enter key AND utilizes the same 'Left Indent' pos



donedown
02-25-2020, 05:29 PM
Pos refers to position.

I used the following statement:

Selection.MoveDown Extend:=wdExtend

It displays the following:
https://i.imgur.com/BDFmVr6l.png

I would like the cursor to instead align with the Left indent position of the square bracket above it.

I'm trying to generate 3 square brackets at one with the desired 'tab stop' location.



For i = 1 To bulletRows
With ListGalleries(wdBulletGallery).ListTemplates(1).ListLevels(1)
.NumberFormat = ChrW(61607)
.Font.Name = "Wingdings"
End With
Selection.Range.ListFormat.ApplyListTemplateWithLevel _
ListTemplate:=ListGalleries(wdBulletGallery).ListTemplates(1)

Selection.Paragraphs.TabStops.Add Position:=rulerXpos + 36, Alignment:=wdAlignTabLeft

Selection.MoveDown Extend:=wdExtend
Next i

gmayor
02-25-2020, 10:19 PM
The link appears invalid?

donedown
02-26-2020, 02:17 PM
I've uploaded the image as a forum attachment.

Unfortunately the forum downsizes the image.