Hi Ailton,

Thanks for your answer.
I don't want to remove the whole caption. I just want to remove everything except the caption's text. So, in the following example:

Figure 3-23: Installing the software

I just want to remove the part in red.
(including the space after the colon)

I think my macro is not working well because of the field special characters. If I try it with normal text, it does the trick. But with the special characters it finds the first occurrence of the string and then it says there are no more.

Regards,

Daniel



Quote Originally Posted by ayltonasc
Hi Daniel, try this:

Sub RemoveCaptionFields()
ActiveDocument.Fields.Unlink
End Sub

Regards.
Ailton