Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-13-2025, 10:37 AM
vivka vivka is offline How do I insert a horizontal line at the end of a document? Windows 7 64bit How do I insert a horizontal line at the end of a document? Office 2016
Expert
 
Join Date: Jul 2023
Posts: 302
vivka is on a distinguished road
Default

Hi! What about this one? This code will insert a line above the doc's last paragraph.
Code:
   
Selection.EndKey wdStory
Selection.InlineShapes.AddHorizontalLineStandard
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I insert a horizontal line at the end of a document? Creating a horizontal line in a document jjjoverthere Word 2 11-03-2018 05:39 PM
How do I insert a horizontal line at the end of a document? Horizontal line I can't delete goingvirtual Word 2 09-09-2018 02:58 AM
How do I insert a horizontal line at the end of a document? MS Word Horizontal Line Disappears after pressing Enter from end of line MikeWhite Word 5 01-20-2017 03:39 PM
How to change the default features for AutoShape horizontal line (button 'Insert horizontal line') 534tomasz Word 6 10-13-2016 02:33 AM
How do I insert a horizontal line at the end of a document? Putting a horizontal line in a Word Document -- should be simple, right? biotechguy Word 4 05-10-2010 11:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:43 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft