How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Greg Maxey Your Own Question

Greg Maxey
Greg Maxey , Consultant\Microsoft Word Expert
Category: General
Satisfied Customers: 62
Experience:  Microsoft Word Most Valuable Professional (6 years)
Type Your Question Here...
Greg Maxey is online now
A new question is answered every 9 seconds

I need to have line numbering on the right side of my document.

Customer Question

I need to have line numbering on the right side of my document. Found this:
I seem to be tantalizingly close but can't close the deal. I get all the way to the last step and it doesn't work. I run the VB code and get numbers on the left. Then, as instructed, I add the line to the "Immediate Window" but nothing happens. I run the script again. Nothing happens---numbers stay on the left. Now, I know *nothing* about Visual Basic and macros. But I looked everywhere I could, including other help articles this article linked to, to see if there's something else I need to do to "activate" or "run" (or whatever the proper verb is here) the content of the "Immediate Window." Can't find anything. I'm so close! Help!
Submitted: 5 years ago.
Category: General
Expert:  Greg Maxey replied 5 years ago.

When you "add" the lines to the immediate window did you press "enter" to execute the code?


The steps enumerated in the tips page work. I just confirmed it twice.


Customer: replied 5 years ago.
Thanks for your quick reply! I re-read everything and now I fear I've confused myself. The instructions start with a series of steps that are all executed in standard Word dialog boxes or in the Office Language settings. Then in the middle it says
"Remember though, it is not section alignment alone. For line numbers to appear in the right margin you must set the section alignment to right to left "and" have a right to left script language enabled. This can be demonstrated using VBA in the following manner."
Does this mean to do all the following VB work too? Or is it just a "demonstration" of an alternative manner of doing the same thing as was acheived with the dialog boxes, etc.?
An added wrinkle: I'm operating in a Windows Server 2003 (R2) environment, i.e. a terminal server instance that looks and works just like XP. Would that mess up the functionality of this?
Customer: replied 5 years ago.
Another piece of evidence that I'm not sure makes a difference: In the MS Office 2007 Language Settings, when I select "Hebrew" and enable it, it says "Hebrew (limited support)". Now, even though that's there, when I fire up Word again, I do see a directional option in the Page Layout dialog and the buttons in the ribbon, as you depicted in your screenshots, so I figured it was fine. But just wanted to check.
Expert:  Greg Maxey replied 5 years ago.

I think you are getting close. Your OS shouldn't matter. Perhaps the page is a bit confusing because "no" you do not need any VBA to achieve your result.


All you need is:


1. A right to left language enabled.

2. A right to left section direction setting.

Customer: replied 5 years ago.
Ok... well that's relieving... if only it worked! I have enabled Hebrew in the Language Settings. In Word, I put my cursor in the section I want right-sided numbers, I go to Page Setup [dialog] > Layout [tab] and for Section Direction: I select Right-to-left.
I also add line numbers from the dialog box below.


But I'm still not getting right-sided line numbers. I just get nothing!
If I switch the Section direction back to Left-to-right, I do get left-sided numbers.
I'm going crazy!


Expert:  Greg Maxey replied 5 years ago.

I don't know what else to tell you. If you find a way to send me the document I will try to look at it for you. I can't provide direct contact information in this forum.

Customer: replied 5 years ago.
Posted to Google Docs, but not converted to Google Docs format. Should still be in MS Word 2007 ".docm" format. Also, I set it so no sign-in required. Thanks for helping me. If you can get this to work, it'll be worth every penny to me.
Expert:  Greg Maxey replied 5 years ago.

No joy there. Did you see the feedback link on the web page for line numbering?

Customer: replied 5 years ago.
When you say "no joy" do you mean the link doesn't work? Or you cannot download from Google Docs? Or what? I can send you the full link on your website if that's preferable. Or can I somehow actually send you the full document through your website? I'm confused as to what you want me to do.
Expert:  Greg Maxey replied 5 years ago.

By no joy I mean that without seeing your actual Word document then there isn't anything else that I can do for you. The rules of this service prohibit me from providing you a direct means of communicating with me. Silly? Yes, but rules are rules.

Greg Maxey, Consultant\Microsoft Word Expert
Category: General
Satisfied Customers: 62
Experience: Microsoft Word Most Valuable Professional (6 years)
Greg Maxey and 37 other General Specialists are ready to help you
Customer: replied 5 years ago.
Well thanks for fixing this through other channels. You've been incredibly helpful and patient.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Previous | Next >
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX

Meet The Experts:

  • Dr. Y.

    Dr. Y.


    Satisfied Customers:

    I am fellowship trained specializing in general urology and reconstructive urology.
< Last | Next >
  • Dr. Y.'s Avatar

    Dr. Y.


    Satisfied Customers:

    I am fellowship trained specializing in general urology and reconstructive urology.
  • John's Avatar


    Home Appliance Technician

    Satisfied Customers:

    Appliance repair business owner for over 43 years.
  • Tina's Avatar



    Satisfied Customers:

    JD, BBA Over 25 years legal and business experience.
  • GM Tech (Cam)'s Avatar

    GM Tech (Cam)

    GMC Mechanic

    Satisfied Customers:

    GM Grand Master Technician 2007. 14 years experience.
  • dermdoc19's Avatar



    Satisfied Customers:

    30 years practice in general and cosmetic dermatology
  • Dr. Gary's Avatar

    Dr. Gary

    Cat Veterinarian

    Satisfied Customers:

    DVM, Emergency Veterinarian, BS (Physiology)
  • Dr. Pat's Avatar

    Dr. Pat

    Bird Veterinarian

    Satisfied Customers:

    25+ years working primarily or exclusively with birds