Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-21-2019, 12:14 AM
gmayor's Avatar
gmayor gmayor is offline Underline word(s) over the whole page width using VBA Windows 10 Underline word(s) over the whole page width using VBA Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Use a paragraph border e.g.

Code:
Sub Macro1()
    Selection.TypeText Text:="titel"
    With Selection.ParagraphFormat.Borders(wdBorderBottom)
        .LineStyle = wdLineStyleSingle
        .LineWidth = wdLineWidth150pt
        .Color = wdColorAutomatic
    End With
End Sub
You may also find Lined Headings useful
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to adapt a text pasted from PDF to the full width of a microsoft word page Alessio Word 2 01-13-2018 03:35 PM
Underline word(s) over the whole page width using VBA Underline at bottom of page won't go away yachts66 Word 3 08-13-2014 07:28 AM
Underline word(s) over the whole page width using VBA How do you delete the UNDERLINE from a Title that remains on The previous page. Dane_s_13 Word 4 02-20-2013 04:55 PM
Underline word(s) over the whole page width using VBA Word 2012: Change column width changes table width OpfinnarJocke Word Tables 1 09-22-2012 04:03 AM
Underline word(s) over the whole page width using VBA Word is inserting bold page-width lines without permission! kozureokami Word 6 05-22-2011 02:59 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:39 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