In Word 2007, Word 2010 and Word 2013 the Page Layout tab has a Line Numbers pull down, as you can see in the image below. Secrets and tips for the Windows 10 October 2018 update A detailed and independent look at Windows 10, especially for Microsoft Office.
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. Average cost for a full kitchen remodel.
• 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.