Convert / Replace tab stops to comma
Find and Replace Format seems to work only if the Tab stop positions are known:
With ThisDocument.Range.Find
For L = wdTabLeaderDots To wdTabLeaderLines
.ParagraphFormat.TabStops.Add Position:=36, Leader:=L
.Execute "^t", , , , , , , , , ",", wdReplaceAll
Next
End With
Alternative can be to check the tab stops of each paragraph ( BTW WdTabLeader
has 6 values ) :
Dim p As Paragraph, t As TabStop
For Each p In ThisDocument.Paragraphs
For Each t In p.TabStops
If t.Leader Then p.Range.Find.Execute "^t", , , , , , , , , ",", wdReplaceAll
Next
Next