Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 12-30-2019, 10:36 AM
abcdoedoe abcdoedoe is offline How do I make a stars horizontal line? Windows 10 How do I make a stars horizontal line? Office 2016
Novice
How do I make a stars horizontal line?
 
Join Date: Dec 2019
Posts: 6
abcdoedoe is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
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


isn't there a non-programming solution? anything simpler?
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 07:41 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