
Removing {tc "la-la-la"} prefixes from word document
Hi Mikhail,
You can use the following to delete all fields that are TOCEntry fields and
look like { TC "...."}
Dim f As Field
For Each f In ActiveDocument.Fields
If f.Type = wdFieldTOCEntry Then
f.delete
End If
Next f
HTH
Quote:
> Hello,
> I use some tool that generates rtf files with {tc "..."} prefixes for
> marking table of contents elements. I preffer different table of contents,
> so I use VBA routine to reformat document text.
> Can anybody help me to write VBA procedure to remove this prefixes or get
me
> any ides to find information in Word VBA Help file.
> Best wishes,
> Mikhail Krivoshein