水平线可以清楚地划分段落。 许多用户已经知道他们可以通过输入三个连字符，下划线或星号等来添加水平线，然后按Enter键。 看截图：
您订购的 Kutools for Word's 水平线 功能，只需点击一下鼠标即可从Word文档中删除各种水平线。
Kutools for Word：拥有超过100便利的Word插件，可以免费试用60时间不受限制。 点击下载并免费试用现在！
2。 点击 页面边框 项目中 页面背景 一群 设计 标签;
3。 点击 国界 标签，点击 没有，单击“ OK。 所选的水平线将被一次删除。
1。 按 Alt + F11 在Word中打开VBA窗口;
2。 点击 模块 前往 插页 选项卡，并将代码插入到 模块 窗口;
Sub removehline（）Dim ils As Para As For Each ils In ActiveDocument.Paragraphs ils.Borders（wdBorderBottom）.LineStyle = wdLineStyleNone Next ils End Sub
3。 点击 跑 按钮或按下 F5 直接应用VBA。 并且所有水平线已从文档中删除。
最简单的方法是从整个文档或文档选择中删除所有水平线 Kutools for Word.
|Kutools for Word : 有超过100便利的Word插件，可以在60天免费试用而没有限制.|
1。 点击 kutools > 水平线 来自 删除 组，请参阅截图：
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 10 months agoThe VBA code returns the error 'compile error: must be first statement on line' for the first line. Any thoughts?
To post as a guest, your comment is unpublished.· 10 months agoThe VBA code returns the error - compile error: must be first statement on line for the first line.
To post as a guest, your comment is unpublished.· 2 years agoThe VBA code method worked. Thanks so much!
To post as a guest, your comment is unpublished.· 3 years ago[b]Thank you, thank you, thank you! [/b] I have a multi-gigabyte library of DOCX files that use horizontal lines (=== and ---) as internal section dividers. Thanks to your tip (perhaps the only instance on the web?) I will be able to programmatically split these documents into sub-files.
To post as a guest, your comment is unpublished.· 3 years agoI love you! OMG.
The VBA thing worked!!!!
That dump line was driving me crazy.
To post as a guest, your comment is unpublished.· 4 years ago140 Ogrady St.
Fall River, MA 02720-4911
How 3 lines made one line???
To post as a guest, your comment is unpublished.· 4 years agoNone of this page border stuff worked at all. I searched the document. The horizontal line was at the end, and 10 pages earlier was the culprit, a roman paragraph number lurking in a sentence for no reason at all. When I deleted it it removed the line 10 pages away.
I will cut and pate the bugger here. In fact, you can have a set of them from 1 to 6. The then put a line at the bottom of every page. Go figure. MS Word 2007 is the platform.
They are there, but do not display. They are just above this line, and will highlight if you mouse over.
To post as a guest, your comment is unpublished.· 4 years agoThe manual methods did not work, but the VBA code did. Very nice!
To post as a guest, your comment is unpublished.· 4 years agoThis is amazing!!! BIG THANK YOU for putting the VBA code.
Searched in google but yours was the only thing that came up.
To post as a guest, your comment is unpublished.· 4 years agoOMG! Thank you. I ran a macro as instructed and managed to remove the line. You were the onlly site among 3 to propose this solution.
To post as a guest, your comment is unpublished.· 5 years agoMy Word doc is generated from RoboHelp. Somewhere in there is a horizontal line, not a border. The doc is 1300+ pages. I searched for graphic one at a time and did not find it. Then I used your macro, and it failed at ils.Borders(wdBorderBottom).LineStyle = wdLineStyleNone. I have lots and lots of tables, so I'm glad it failed. :eek: I really just want to know what the VB script is for horizontal line (not border).
To post as a guest, your comment is unpublished.· 5 years ago3 "pound signs" won't do anything. 3 pound signs are £££. That does not create any line. I think you mean 3 HASH signs (otherwise known as number signs): ###