Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How do I adjust the pasted text to Word from Notepad or similar p.
I tried to copy a text from Notepad and paste it into Word. Often time after
pasting, I had to readjust its width in Word in order to make it "stretch" out on the page. Is there any other way I can do it without the adjustment, so the pasted text can automatically stretch out itself in Word? Thanks. |
#2
|
|||
|
|||
The subroutine below will probably do what you want. I wish I could recall
who to credit as the author but I don't. Sub ClearXtraCarriageReturns() ' Dim rngStartMarker As Word.Range Set rngStartMarker = Selection.Range Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "([!^13])(^13)([!^13])" .Replacement.Text = "\1 \3" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchAllWordForms = False .MatchSoundsLike = False .MatchWildcards = True End With Selection.Find.Execute Replace:=wdReplaceAll rngStartMarker.Select End Sub Steve "Pan0912" wrote in message ... I tried to copy a text from Notepad and paste it into Word. Often time after pasting, I had to readjust its width in Word in order to make it "stretch" out on the page. Is there any other way I can do it without the adjustment, so the pasted text can automatically stretch out itself in Word? Thanks. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
In typing dates in Word, i.e. "January 12" how do you keep the "1. | Microsoft Word Help | |||
word xp crashes after macros are recorded | Microsoft Word Help | |||
WP Delay Code - Word Equiv | Microsoft Word Help | |||
Continuous breaks convert to next page breaks | Microsoft Word Help | |||
How to change merge forms from Word Perfect to Microsoft Word | Microsoft Word Help |