
Click Remove All, and all the hidden text will be gone. The Document Inspector will tell you if it’s found any hidden text. Now we scroll down to the bottom and tick the Hidden Text box, unticking everything else unless you want to check for some other issues at the same time. To get to this feature, we go to File | Info |Check for Issues | Inspect Document. You can also use Word’s Inspect Document feature to search for any hidden text and remove it all at once. We can then click Find Next and Replace to go through and remove each piece of hidden text individually, or if we’re confident that all of them do need to be removed, click Replace All to remove them all in one go. We now continue as if we were going to replace the hidden text with something else, but we just leave the Replace field empty so that we replace it with nothing, i.e., delete it. Then, make sure that the Hidden box under Effects is ticked and click OK. Then click the Format dropdown and select Font. Note that you will need to show all of your hidden text using Control+Shift+8 or the Show/Hide button before you search for it – the Find/Replace function won’t find it if it is still hidden.įirst, open the Find and Replace dialog from the Home tab or use Ctrl + H You can use the Find function in Word to search for all the hidden text and replace it with nothing, i.e. Never fear, there are a couple of ways you can hunt down those hidden passages to remove them. Set oRngAnchor = (1).If you want to remove hidden text from your Word document, you first need to find it.įor a shorter document, you can use the Show/Hide button to see what’s hidden and delete it manually, but that would be very time consuming for longer documents with lots of hidden passages. The text is placed at the shape anchor point which usually is at the start of a paragraph. Because textboxes are a subset of shapes they will also be processed. The following macro will step through every shape in the document and if a shape contains a textframe, extract the text and delete the shape. The above macros only process textboxes and not other shapes containing text. It would seem that your "pictures" are rectangles (or perhaps another shape such as a rectangle with rounded corners) containing textframes. However a rectangle to which a textframe has been subsequently added looks and acts the same but is not a textbox. You can then edit the text so that it appears as you want.Ī text box is a shape comprising a rectangle with a textframe and text. When this macro is done, you can do a search for "Textbox start" and you will be at the beginning of text that used to be in the text boxes that are now gone from your document. ' insert the textbox text before the range object ' copy text to string, without last paragraph mark If you prefer to transfer the text from the text boxes to the document, prior to deleting the text box, then a slight modification on the above macro will work: In other words, if a text box is used for placement of text, then the text in that text box is deleted along with the text box itself. You should realize that this macro removes all of the text boxes and their contents. The following macro will quickly remove all text boxes in your document: If you want to get rid of only the text boxes, then the quickest solution is to use a macro. (I told you this was a brute force method.) The obvious drawback to this approach is that the other formatting of the original document is also lost, and you must reformat the entire document. The document text, minus the text boxes, is now in the new document. In the list of formats, choose Unformatted Text.Word displays the Paste Special dialog box. Choose Paste Special from the Edit menu.One potential solution is a "brute force" method. What if there are 30, 40, or more text boxes, though? Deleting them individually can quickly get tedious. If there are only one or two text boxes in the document, it is not that difficult to select them and delete them. If you do a lot of work with documents from other people, you may have a need to remove text boxes in those documents.
