How to Delete Text Box in Word Without Deleting Text

Let’s say you are editing a document and you want to remove all text boxes without altering the text. 

 This won’t be a problem if you only have a couple of text boxes to delete. However, it will surely be a nightmare if you have a hundred-page file with most pages having at least one  text box. Don’t worry because, as they say, for every problem there’s a solution. We’re here to walk you through each step of different methods on how to delete a text box without deleting the text inside it.

Now, there are about three ways to delete a text box without deleting text.

3 Ways to Delete Text Box in Word Without Deleting Text

  • By Copying and Pasting
  • Using the Selection Pane
  • Using Macros

Without further ado, here’s all you need to know to delete a text box in Word without deleting the text. 


Method 1: Remove Text Box By Copying and Pasting

The copy and paste method is the simplest way to edit the format of our document. You’ve probably copied and pasted text and objects multiple times. The same concept is used  when separating text from the text box itself. 

Here’s how you can copy and paste the text from a text box. 

Step 1: Open up a Word file.

To get started, let’s open up an MS Word document. You can simply use the file that you’re currently using if you already have one open. If you’re being extra cautious as you might accidentally delete parts of your document, you can just create a new file by pressing Ctrl + N on your keyboard. 

Remember to insert a text box or simply copy and paste one of yours if you opted to use a blank document.

Step 2: Copy the text from the text box.

Once you have your document ready, double-click on one of the text boxes that you want to delete. Select the text inside  and press the Ctrl + C keys to copy. 

You can also copy the selected text by right-clicking on your mouse and selecting Copy from the drop-down menu.

Step 3: Paste the text on a space outside the text box.

Once you’ve copied the text, place your cursor to your desired location. Then, simply press Ctrl + V on your keyboard to paste the text. Alternatively, you can right-click on your mouse and select Paste from the options. 

Step 4: Delete the text box.

Now that you’ve successfully copied and pasted your text, simply click on any side of the text box and press the Delete key on your keyboard to get rid of it.

There you have it! You’ve successfully deleted a text box without deleting the text inside.


Method 2: Using the Selection Pane

Manually extracting texts from numerous text boxes will surely consume a lot of time. This method introduces a faster approach when handling multiple text boxes. We’ll show you the steps on how to extract text from all your text boxes using the Selection pane. The Selection pane makes it easier to select objects in Word as it lists down all of the objects present in your document. 

Here’s how you can access the Selection pane in Word. 

Step 1: Open an MS Word document.

Before anything else, we’ll need to open up an MS Word document. Feel free to use your own personal document if you already have one open. Otherwise, you can always create a new blank document. Remember that you can easily undo any changes by pressing the CTRL + Z keys on your keyboard. 

Step 2: Access the Selection pane.

In the Home tab, click the Select button under the Editing group. From the drop-down menu, click on the Selection Pane button. This will display the Selection Pane on the right side of your window. 

On the Selection pane, select all the text boxes on the list by clicking each one while holding the CTRL key. 

Alternatively, you can also click on the edges of the text boxes while holding the CTRL key. Clicking from the inside will allow you to edit the text inside rather than selecting the text box. 

Step 3: Copy the Text Boxes.

Once all the text boxes are selected, press the Ctrl + C keys to copy the text boxes. 

Step 4: Open WordPad.

We’ll then need to open WordPad, which is a text editor that came with your Windows installation. Note that you can also use other text editors, like Notepad, that are readily available on your computer. 

Step 5: Paste the text boxes on WordPad.

Once you’ve opened WordPad, hit the Ctrl + V keys to paste the text boxes you’ve previously copied. You’ll now notice that only the texts are retained while the text boxes have been deleted. 

From this point, you can simply copy each text and paste them back into your Word document. 

Congratulations! You’ve successfully used the Selection pane to delete the text boxes in Word without deleting text in it. 


Method 3: Using Macros

This method involves a bit more technical steps. There’s no need to feel intimidated as we’ve made sure that the following steps are easy to follow. Furthermore, learning to use Macros will surely come in handy if you have a bunch of text boxes to get rid of. 

Here’s how you can use Macros to delete a text box without deleting the text. 

Step 1: Open an MS Word document.

First things first, we need to open up an MS Word document. If you’re currently working on one, feel free to use that. Don’t worry about messing it up, as none of the changes we’ll make can irreversibly damage your document. 

Step 2: Create a new Macro.

On an opened document, go to the View tab,then click on the Macros button. This will show the Macros dialogue box in the middle of your screen. 

Type a name for the macro in the Macro name field. For this example, we’ll use the name DeleteTextBox. Make sure that there aren’t any spaces between the words. Then, click the Create button.

You will be directed to the Microsoft Visual Basic for Applications, a.k.a. VBA, on a new window. This is where we’ll create the macros for our document. 

Note that this is a different window than your MS Word. Don’t panic, your document is safe and sound. Let’s keep working! 

Step 3: Create the macro. 

Create the macro by simply copying the VBA code below. We’ve secured this VBA code for you from an online resource. You can visit this site to check out the author and the code. 

Sub DeleteTextBox()

Dim RngDoc As Range, RngShp As Range, i As Long

With ActiveDocument

For i = .Shapes.Count To 1 Step -1

  With .Shapes(i)

  If .Type = msoTextBox Then

  Set RngShp = .TextFrame.TextRange

  RngShp.End = RngShp.End – 1

  Set RngDoc = .Anchor

  RngDoc.Collapse wdCollapseEnd

  RngDoc.FormattedText = RngShp.FormattedText

.Delete

  End If

End With

Next

End With

End Sub

On the VBA window, select all the content in the Normal – NewMacros (code) window and press the Delete key on your keyboard.

Then, paste the code you copied above.

Step 4: Save the code.

Click the Save button found in the toolbar just below the Main menu. 

Step 5. Run the macro. 

Switch back to your MS Word window and click on the Macros button again. On the Macros dialogue box, select the macro DeleteTextBox then click the Run button. Again, note that you may have a different macro name than our example. 

Fantastic! You’ve successfully deleted all the text boxes in your Word document while preserving all the text in it. 


Editing and Deleting Macros in MS Word. 

We’re almost certain that there’ll come a time when you’ll need to edit your Macros. Editing and deleting macros in MS Word is as easy as a-b-c. 

To edit your macros, simply click on the Macros button and select the Macro name that you want to edit. Then, click on the Edit button. 

Once you do that, MS Word will open the VBA editor in a separate window. Take note that you can edit both your MS Word and Macros simultaneously. However, you’ll have to ensure that you’ve saved your Macros first before running them in Word. 

On one end, click the Delete button on the Macros dialogue box to delete your Macros. 

If you are not satisfied with the result, you can always undo the changes you’ve made by simply pressing the Ctrl + Z keys on your keyboard. You may also opt not to save changes upon closing your file to retain the original format of your document.


Conclusion

Congratulations! You’ve finally reached the end of this tutorial. We hope that this article helped you delete a text box in Word without deleting text inside it.

Leave a Comment