The coming article shall show you 6 handy tips to add line numbers and set their formatting in your Word document.
In word, you can add line numbers to document. Line numbers number each line on your document in order which enable you to have a quick idea of which line you are. Now line numbers are like any other normal texts and they have a style, based on default paragraph font. Besides, there are other formatting involving its distance to texts and text direction, which happen to be our topic today.
Tip 1: Add Line Numbers
- Firstly, click “Page Layout” tab.
- Then click “Line Numbers” command to open its drop-down menu.
- Choose an option available, such as “Restart Each Page”. Then each page shall start at “1”.
- Or you can click “Line Numbering Options” to open “Page Setup” dialog box.
- Click “Line Numbers” button to open “Line Numbers” dialog box.
- Then check “Add line numbering” box and set configurations there.
- Lastly, click “OK” in both 2 boxes.
Tips 2: Modify “Line Number” Style
By default, line numbers take the default paragraph font style. When you change the text style, the one of those line numbers stay intact. There is no direct way to change style of those line numbers. But you can do it by altering style.
- Press “Alt+ Ctrl+ Shift+ S” to open “Styles” window.
- Find “Line Number” style and right click on it.
- Choose “Modify” to open “Modify Style” box.
- Set the formatting there and click “OK”.
You can view the effect such as bellow:
Tip 3: Alter “Normal” Style to Change the Style of Line Numbers
As mentioned above, line numbers are in default paragraph style. Therefore, if you want to format line numbers to match your document texts, don’t change the document texts with options in the Ribbon. Instead, go to modify the “Normal” style. You will then find line number style change as well.
- Use the same shortcut in tip 1 to open “Styles” window.
- Find and right click on “Normal” style.
- The repeat step 3 and 4 in tip 1 as well.
Nevertheless, there is a setback. The font type and size of line numbers stay the same as default. But its color will change to the same as that of the document texts.
Tip 4: Run Word Macro to Change Line Number Style
- Firstly, press “Alt+ F11” to trigger VBA editor.
- Then click “Normal” project and then “Insert” tab.
- Choose “Module” on the menu.
- Next double click to open the new module and paste the macro there:
Sub AlterLineNumberStyle() Dim objDoc As Document Set objDoc = ActiveDocument With objDoc.Styles("Line Number").Font .Name = "Arial" .Size = 12 .ColorIndex = wdBlue End With End Sub
- Lastly, click “Run”.
This macro sets line numbers in “Arial” font at 12 pt with blue color. You can change these constants as required.
Tip 5: Put Line Numbers in the Right Margin of Documents Texts
- First of all, click “Start” then “All Programs”.
- Secondly, find and click “Microsoft Office”.
- Thirdly, click “Microsoft Office 2010 Tools”.
- Next click “Microsoft Office 2010 Language Preferences” to open the same bane dialog box.
- Go to click the drop-down button on “Add additional editing languages” field under “Choose Editing Languages”.
- Choose “Hebrew”.
- Then click “Add” and “OK”.
- Next click “OK” for the warning message prompting up. Save your work and restart Word.
- Now click the little arrow button at the right-down bottom in “Page Setup” group under “Page Layout” tab.
- In the “Page Setup” dialog box, ensure “Layout” tab is on. Choose “Right-to-Left” in “Section direction” field.
- Then click “Line Numbers” button and follow instructions in tip 1 to set line number options and click “OK” to save the change.
Check the outcome as bellow:
Tip 6: Change the Distance between Line Number and Document Text
Still, we can’t change the distance between line number and text directly with built-in command in Word. Thus we will take the macro way.
Use the same steps in tip 4 to install and run a macro. This time use the bellowing codes instead:
Sub ChangeLineNumberDistanceFromText() Dim objDoc As Document Set objDoc = ActiveDocument With objDoc.PageSetup.LineNumbering .Active = True .DistanceFromText = 30 End With End Sub
View the effect:
What to Do in Face of Corrupt Documents
If your Word stops working out of no reason, check your documents immediately. There is a large chance that they may get corrupted. Then you are in need of an eligible tool to recover docx as soon as possible.
Author Introduction:
Vera Chen is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including recover Excel and pdf repair software products. For more information visit www.datanumen.com
batmanapollo.ru
Wow, awesome weblog format! How long have you been running a blog for?
you made blogging look easy. The entire look of your website is magnificent, let alone the
content material! You can see similar here
sklep online
Wow, marvelous weblog layout! How lengthy have you
ever been running a blog for? you make running a blog look easy.
The total glance of your website is magnificent, let alone
the content material! You can see similar here sklep
WOW just what I was searching for. Came here by searching for %keyword%
I used the Hebrew fix and eventually got line numbers on the right side of the page. (MS 365 Word version 2209). But you left out a key step: what to do after installing Hebrew when all the Office applications restart entirely in Hebrew, and you have to figure out how to navigate back to the language panel to make English the preferred language again. This is quite disconcerting, especially since all the navigation buttons change to right to left to follow Hebrew rules and everything is in Hebrew. You’d better make sure you know where to look in the options pane before trying this fix!
Hello dear
I have a 2-column document and want to insert the line number on the left column only. Is there any way to do that?
Thanks