In this article, let’s talk about the 7 useful ways to create a fillable field with underline in your Word document.
Once in a while, we would need to create some questionnaires. Therefore, it would be a needy demand to create a fillable field with underline. In the following content, there are 7 effectual methods which shall meet your requirements.
Method 1: Manually Draw a Line
- First off, put cursor at the place where the line goes and click “Insert” tab.
- Then click “Shapes” in “Illustration” group.
- Choose “Line” in “Lines” group.
Now there shall be a colored line. You can click on it and change the color to black by choosing a shape style under “Format” tab.
Method 2: Add Underline for Font
- To start with, enter a series of space and select them.
- Then click the expand button under “Home” tab to open the “Font” dialog box.
- Next choose an underline style and click “OK”.
- Now type on the selection and the text shall be underlined.
Method 3: Enter Underscore
- Firstly, click “Underline” under “Home” tab and choose one line style.
- Then press “Shift+ Underscore” to get a line.
- Then place cursor above the line and type the content. As you type, you will find the line gets longer and longer. So you need to trim the length afterwards.
Method 4: Insert a Paragraph Border
- To begin with, click the border icon under “Home” tab in “Paragraph” group.
- Then choose “Bottom Border”.
Here is the effect:
Method 5: Use a Table Border
- Click “Insert” tab first.
- Then click “Table”.
- Next choose “Draw Table” on the list.
- Draw a table of one row and one column with approximate height and width.
- Then select the table.
- Click “Design” tab then “Borders” Icon.
- First choose “No Border” and then “Bottom Border”.
Method 6: Create a Horizontal Line
- Type dash three times.
- Then press “Enter”.
Method 7: Run a Macro
- First and foremost, press “Alt+ F11” to open Word VBA editor quickly.
- Then click “Normal” and then “Insert”.
- Next click “Insert”.
- Then choose “Module”.
- Double click on the new module to open the editing space.
- Paste these codes there:
Sub CreateAFillableField() Dim objParagraph As Paragraph Dim objTable As Table 'Initialization Set objTable = ActiveDocument.Tables.Add(Range:=Selection.Range, NumRows:=1, NumColumns:= _ 1, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _ wdAutoFitFixed) objTable.Cell(1, 1).SetWidth ColumnWidth:=InchesToPoints(1.1), RulerStyle:=wdAdjustNone 'Set Table borders invisible. Selection.Borders.Enable = False 'Apply bottom border only to table. With Selection.Borders(wdBorderBottom) .LineStyle = Options.DefaultBorderLineStyle .LineWidth = Options.DefaultBorderLineWidth .Color = Options.DefaultBorderColor End With 'Remove table caption. For Each objParagraph In ActiveDocument.Paragraphs If objParagraph.Range.Style = "Caption" Then objParagraph.Range.Delete End If Next objParagraph End Sub
- Click “Run” button.
For easy use in the future, you can assign a button for the macro. You can refer to this article: How to Remove the Formatting of Pasted Texts with Macro and VBA in Your Word
Comparison of 7 Methods
Methods | Advantages | Disadvantages |
Method 1: Manually Draw a Line | You can drag the line to adjust its location. | 1. You will have to change the color to black.
2. The line can’t get longer automatically even if there is no enough space for the text. |
Method 2: Add Underline for Font | 1. There is no extra space left on the line.
2. The line can get longer automatically if there is no enough space for the text. |
1. You can’t see the line until you enter text over it.
2. You can’t move the line. |
Method 3: Enter Underscore | You can view the line. | 1. You have to apply underline to the space before creating the line.
2. You will have to reduce the line length since it gets longer as you type. 3. You can’t move the line. |
Method 4: Insert a Paragraph Border | You can view the line. | 1. You can’t change the line length.
2. You can’t move the line. |
Method 5: Use a Table Border | 1. You can move the line.
2. You can alter the line length. |
1. You have to remove unnecessary borders.
2. You have to remove the table caption. |
Method 6: Create a Horizontal Line | You can view the line. | 1. You can’t change the line length.
2. You can only have it on the next paragraph of existing text. 3. You can’t move the line. |
Method 7: Run a Macro | 1. You can view the line.
2. You can move the line. 3. You can change the length. 4. No need to delete table caption. 5. The quickest way to get a fillable field with underline |
You will have to assign the macro to a button if you want to use it quickly in the future. |
Address File Corruption Predicament
In everyday use of digital devices, file loss or corruption due to all kinds of reasons happens all the time. However, these seeming broken files are highly recoverable, for there is a specialized damaged Word docx repair tool, the last-ditch effort you can make to save your data.
Author Introduction:
Vera Chen is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including xls data error recovery tool and pdf repair software products. For more information visit www.datanumen.com
Hello to all, how is the whole thing, I think every one is
getting more from this web page, and your views are pleasant in support
of new viewers. 69hub.pl
Hello! Do you use Twitter? I’d like to follow you if that would be okay. I’m absolutely enjoying your blog and look forward to new posts.
Hello! My name is Brian from datatoleads.com We sell Consumer and business data to generate lower costing B2B and B2C Leads and Sales.turn data to leads! Would you be interested in getting sample custom targeted lead list.
datatoleads.com
Another way: Enter the field label, add a space or two then change font to underline and insert tab. insert tab stop at the point where the underline should end. This approach allows text to be inserted without the line extending to the right. Only limitation is that the text entered should be shorter than where the tab stop ends the underline.
I tried all these suggestions, but when the auto-fill box is filled in with information, a line does not show under the information.