How to Remove Text Box Border in Excel (2 Useful Methods)

Get FREE Advanced Excel Exercises with Solutions!

If you are looking for how to remove text box border in Excel, then you are in the right place. A text box is an empty field where a user can fill in a piece of text. It generates a clean space to hold the text without occupying a cell or disrupting data and equations. While using Excel, we often need to make a text box and add or remove borders to or from it. In this article, we’ll try to discuss how to remove the text box border in Excel.


How to Remove Text Box Border in Excel: 2 Useful Methods

Excel offers a couple of ways to remove the text box border. To remove an existing text box border, we have to insert a text box first. It is very easy to make it. After creating the text box, we can follow the ways to remove it. Those are very handy to use. We just need to follow some simple steps.


1. Using Shape Format Feature

Using the Shape Format feature is the easiest way to remove the text box border. Suppose we have a text box with a border in the following picture. We need to remove this border.

how to remove text box border in excel

  • Firstly, click on the text box.
  • Secondly, go to Shape Format > select the icon of Shape Outline > choose No Outline.

Using Shape Format Feature

  • Eventually, we’ll see that the border of the text box has been removed.

Read More: How to Convert Text Box to Cell in Excel


2. Utilizing VBA

We can use VBA code to remove the text box border very easily. Suppose, we have a text box border in the following picture like this. We need to remove this border.

Utilizing VBA

Steps:

  • Firstly, go to the Developer tab > select Visual Basic.

how to remove text box border in excel

  • Secondly, click Insert > select Module.

how to remove text box border in excel

  • Eventually, a new module will appear like this.

  • Thirdly, write the following code in the module.
Sub DeleteTextBoxBorder()

Dim box As Shape

On Error GoTo BoxBorder

For Each box In ActiveSheet.Shapes
If box.Name Like "TextBox*" Then
box.Line.Visible = msoFalse
End If

BoxBorder:
    Next

End Sub

how to remove text box border in excel

Here, we have declared a sub procedure DeleteTextBoxBorder where we have filtered the type of the shape with something like TextBox (usually when you create a text box the shape’s name is like TextBox 1, TextBox 2,). And made its line visibility mosFalse that leads not display the border. 

  • Fourthly, click Run > select Run Sub/UserForm.

  • Finally, we’ll see that the text box border is removed like this.

Here, we have declared a sub procedure DeleteTextBoxBorder where we have filtered the type of the shape with something like TextBox (usually when you create a text box the shape’s name is like TextBox 1, TextBox 2,). And made its line visibility mosFalse that leads not display the border.

Read More: How to Insert Scrolling Text Box in Excel


How to Remove Cell Border in Excel

We can remove the cell box border very easily. There are a couple of ways to do that, but we’ll discuss only one way, and that is using the Font box. Suppose, we have the following dataset where cells B4:D10 are covered with borders.

How to Remove Cell Border in Excel

We’ll show the way to remove the borders.

Steps:

  • Firstly, select the cells where there are borders. In this case, it is cells B4:D10.
  • Secondly, go to Home > click the drop-down menu of Borders > select No Border.

how to remove text box border in excel

  • Consequently, we’ll see that the borders are removed from the selected cells like this.


Download Practice Workbook


Conclusion

That’s all about today’s session. These are the ways to remove text box borders in Excel. We strongly believe this article would be highly beneficial for you.


Related Articles

What is ExcelDemy?

ExcelDemy Learn Excel & Excel Solutions Center provides free Excel tutorials, free support , online Excel training and Excel consultancy services for Excel professionals and businesses. Feel free to contact us with your Excel problems.
Shajratul Alam Towhid
Shajratul Alam Towhid

Hello, myself Shajratul Alam Towhid. Basically, I am a Naval Architect who wants to expand knowledge in the field of Microsoft Excel. I wish all of my articles will be beneficial for the readers.

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo