1. 在word“布局”菜单中选择“行号”,行号默认显示在左侧
2. 按下Alt+F11,调出VB窗口,点击“视图”菜单,选择“立即窗口”
3. 在窗口中粘贴如下代码,然后按下Shift+Enter键运行。
ActiveDocument.Sections(1).PageSetup.SectionDirection = wdSectionDirectionRtr
4. 行号显示在右侧了 ^_^ #
5. 如果想将行号改回左侧,类似操作,将下列代码粘贴在“立即窗口”并按下Shift+Enter键运行。
ActiveDocument.Sections(1).PageSetup.SectionDirection = wdSectionDirectionLtr