PDA

View Full Version : Deleting Right Tab changes next Left Tab To Right Tab



nhmabv
09-25-2014, 05:01 PM
I have a simple thing to do, delete a right tab near the left of a line that has a number of other left tabs to the right.
What happens is that the first Right Tab is cleared, but the first Left Tab to its right gets changed to Right Tab.
I am using :


Selection.ParagraphFormat.TabStops(InchesToPoints(1.13)).Clear

Even If create a new document with just a few words and one right tab and one left tab (about 2 inches apart), the problem still occurs.
Thanks for any help

gmayor
09-25-2014, 09:15 PM
Use the following instead


Dim oTab As TabStop
For Each oTab In Selection.Range.Paragraphs(1).TabStops
If oTab.Alignment = wdAlignTabRight Then
oTab.Clear
Exit For
End If
Next oTab