Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-30-2019, 06:25 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 How do I make a stars horizontal line?

How do I create this horizontal line?




***************************************


I want it to be stars, I know that you can type 3 dashes --- and hit enter and it will insert a horizontal line, but there's no built-in *** for a stars horizontal line.



I want it so that if I type 3 stars *** it will then give me a stars line like


***************************************
Reply With Quote
  #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,101
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 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
  #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
  #4  
Old 12-30-2019, 12:23 PM
Charles Kenyon Charles Kenyon is offline How do I make a stars horizontal line? Windows 10 How do I make a stars horizontal line? Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,083
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You could save an AutoText entry. It would not adjust to your margins or font size, though.
Here is a temporary link to a template with this with instructions.

Note, at some number of asterisks it will stop displaying the pop-up. In that situation, you will need to press F3.


Automated Boilerplate Using Microsoft Word
AutoText and AutoCorrect are very different functions.
Reply With Quote
  #5  
Old 12-30-2019, 05:54 PM
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 Charles Kenyon View Post
You could save an AutoText entry. It would not adjust to your margins or font size, though.
Here is a temporary link to a template with this with instructions.

Note, at some number of asterisks it will stop displaying the pop-up. In that situation, you will need to press F3.


Automated Boilerplate Using Microsoft Word
AutoText and AutoCorrect are very different functions.

already downloaded it thanks for that 🙏
Reply With Quote
  #6  
Old 12-30-2019, 09:22 PM
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,101
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 of
Default

Quote:
Originally Posted by abcdoedoe View Post
isn't there a non-programming solution? anything simpler?
What is simpler than copy and paste? Installing Macros
__________________
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
Reply

Thread Tools
Display Modes


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 04:29 PM.


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