Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 12-30-2019, 08:05 AM
gmayor's Avatar
gmayor gmayor is offline How do I make a stars horizontal line? Windows 10 How do I make a stars horizontal line? Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,142
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

You could use an autocorrect entry, but unlike the hyphens, there is no built-in function to do that.
Maybe a macro would help?
Code:
Sub Macro1()
Dim orng As Range
    Set orng = Selection.Range
    Do
        orng.Text = orng.Text & "*"
        If orng.Characters.Last.Information(wdVerticalPositionRelativeToPage) > _
           orng.Characters.First.Information(wdVerticalPositionRelativeToPage) Then Exit Do
        DoEvents
    Loop
    orng.Characters.Last.Delete
    orng.Collapse 0
    orng.Select
    Set orng = Nothing
End Sub
__________________
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 do I make a stars horizontal line? Horizontal line I can't delete goingvirtual Word 2 09-09-2018 02:58 AM
Line arrow impossible to make horizontal bgbin7444 Word 3 07-12-2018 04:20 PM
How do I make a stars horizontal line? 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 make a stars horizontal line? Horizontal sawtooth line JamesT Word 3 10-29-2011 05:39 PM

Other Forums: Access Forums

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