Replacing existing content with strings of x will surely mess up the document layout - for the simple reason that, unless you're using a fixed width font, the x strings are unlikely to be the same overall width as the strings they replace. For what you want, see the
Redact a Word Document 'Sticky' thread at the top of the Word VBA forum:
https://www.msofficeforums.com/word-...-document.html