
If you want to find out all underlined texts in a whole worksheet, click the left corner of the worksheet to select entire worksheet, and then apply the Select Cells with Format utility.Ģ. Now all the underlined texts are selected.ġ. Click Ok, then a dialog pops out to remind you how many underlined texts are selected, click Yes to close it. Click OK, and in the Select Cells with Format dialog, check Underline only. And in the Select Cells with Format dialog, click Choose Format From Cell to select the cell you format with underline in step1. Then select the range you want to find out the specific underlined texts, and click Kutools > Select > Select Cells with Format. Select a blank cell, and then type a data into it, for instance, A1, and click Home > Underline, and select a type of underline you need.
#HOW DO I UNDERLINE IN EXCEL FREE#
Kutools for Excel, with more thanģ00 handy functions, makes your jobs more easier.Īfter free installing Kutools for Excel, please do as below:ġ. If you have Kutools for Excel installed, you can apply the Select Cells with Format utility to quickly find out the underlined texts in a range of a whole worksheet.
#HOW DO I UNDERLINE IN EXCEL CODE#
If you just want to find out one type of underlined texts in a specific range, this VBA code cannot help you, but you can use below handy tool to solve this task in this case. Click OK, then a dialog will pop out to tell you which cells are single underlined texts, and which are double underlined texts. And a dialog pops out for select a range to find underlined texts.Ĥ. If xAddress2 "" Then Result = Result & "Double underline address:" & vbCr & xAddress2ģ.

If xAddress1 "" Then Result = "Single underline address:" & vbCr & xAddress1 & vbCr & vbCr XAddress2 = xAddress2 & ", " & Rg1.Address If Rg1.Characters(I, 1).Font.Underline = xlUnderlineStyleDouble Then XAddress1 = xAddress1 & ", " & Rg1.Address If Rg1.Characters(I, 1).Font.Underline = xlUnderlineStyleSingle Then Set Rg = Rg.SpecialCells(xlCellTypeConstants) Set Rg = Application.InputBox("Please select a range:", "Kutools for Excel", xAddress,, ,, , 8) Sub SearchForUnderline()ĭim xAddress As String, xAddress1 As String, xAddress2 As String VBA: Find all underlined text in a worksheet. In the popping Module window, paste below VBA code. Press Alt + F11 keys to open Microsoft Visual Basic for Applications window, and click Insert > Module.Ģ.

In Excel, you cannot use Go To Special function to find out the underlined texts, so I introduce a VBA code to help you find all underlined texts in a worksheet.ġ. Supposing you have a range of data in a worksheet, and some of the data is with underline, and now you want to find out these data with underline, how can you quickly find out them? Here I introduce some tricks for you to quickly find out the underlined texts in a range or whole worksheet in Excel.įind all underlined texts in a worksheet with VBAįind all underlined texts in a range or worksheet with Kutools for Excel We'll look at borders more closely in an upcoming lesson.How to find all underlined texts in a range or whole worksheet in Excel? Unlike text underlining, cell borders run edge to edge across the entire cell.

In fact, when the selection contains any format but Accounting, normal underlining will be applied.įinally, depending on your needs, keep in mind that applying a border on the bottom of cells is another way of underlining content in Excel. For example, if we apply Underlining to cells in the Currency format, Excel does not use the accounting version. This doesn't happen with other number formats or when the selection contains content in different formats. There's no indication that this has been done, but you can see the accounting version has been applied in the Format Cells dialog box. Note that Excel will automatically apply the accounting version of underlining in cases where the selection contains only cells using the Accounting format. We can see this if we apply the different formats side by side. The accounting variants of underline options increase the row height a bit and provide more space between the underline and the text. You can't see these options on the ribbon, but in the Format Cells dialog box, you'll find them listed in the Underline menu as "Single Accounting" and "Double Accounting." For example, if you apply a Double Underline, the button will keep that selection until you select Single Underline again.Įxcel actually provides two more underline options for use with the Accounting number format. The Underline button remembers your last selection. It also provides a menu for selecting single and double-underlining. The Underline button toggles underlining on and off. It also provides a special variant of each for numbers using the Accounting format.įor most basic underlining, you can just use the Underline button on the ribbon. Excel provides both single and double underlining.
