#1
|
|||
|
|||
Every word from new line
I would like to have a code, which makes all word from new line (paragraph). Any other method, except just replacing:
Code:
Sub Wordsfromnewline() With Selection.Find .Text = " " .Replacement.Text = "^p" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchByte = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAll Exit Sub End Sub |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word macro for deleting a line that starts with a specific character + deleting the line before | eduardb | Word | 1 | 08-10-2022 03:17 AM |
word erases line bottom in tight line spacing when new line is added | ozzzy | Word | 2 | 01-21-2021 06:41 AM |
How to bold a whole line in Word based on a word or character on the line | Yancx | Word | 6 | 03-21-2018 04:48 PM |
MS Word Horizontal Line Disappears after pressing Enter from end of line | MikeWhite | Word | 5 | 01-20-2017 03:39 PM |
macro to add brackets to each line and add single quotes to each word in the line | bracketandquotes | Word VBA | 17 | 02-16-2015 03:51 PM |