R
Rick Charnes
In my macro I want to clear all tabs, then set two tabs which should be
active for any text that the macro pumps out in the rest of the
document. I use this code from a 'Record Macro':
'set tab stops only at 1.25" and 3.0"
Selection.ParagraphFormat.TabStops.ClearAll
ActiveDocument.DefaultTabStop = InchesToPoints(0.5)
Selection.ParagraphFormat.TabStops.Add Position:=InchesToPoints(1.25), _
Alignment:=wdAlignTabLeft, Leader:=wdTabLeaderSpaces
Selection.ParagraphFormat.TabStops.Add Position:=InchesToPoints(3), _
Alignment:=wdAlignTabLeft, Leader:=wdTabLeaderSpaces
But for some reason after this code is executed these two tabs only hold
for the first paragraph of text that is pumped out afterwards. After
that, the tab setting reverts to one tab every 0.5". What am I doing
wrong? Thanks.
active for any text that the macro pumps out in the rest of the
document. I use this code from a 'Record Macro':
'set tab stops only at 1.25" and 3.0"
Selection.ParagraphFormat.TabStops.ClearAll
ActiveDocument.DefaultTabStop = InchesToPoints(0.5)
Selection.ParagraphFormat.TabStops.Add Position:=InchesToPoints(1.25), _
Alignment:=wdAlignTabLeft, Leader:=wdTabLeaderSpaces
Selection.ParagraphFormat.TabStops.Add Position:=InchesToPoints(3), _
Alignment:=wdAlignTabLeft, Leader:=wdTabLeaderSpaces
But for some reason after this code is executed these two tabs only hold
for the first paragraph of text that is pumped out afterwards. After
that, the tab setting reverts to one tab every 0.5". What am I doing
wrong? Thanks.