![]() |
|
#1
|
|||
|
|||
|
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 *************************************** |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
Quote:
isn't there a non-programming solution? anything simpler? |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
Quote:
already downloaded it thanks for that 🙏 |
|
#6
|
||||
|
||||
|
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 |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
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 |
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 |
Horizontal sawtooth line
|
JamesT | Word | 3 | 10-29-2011 05:39 PM |