![]() |
#1
|
|||
|
|||
![]() I need to insert a spacing character " " before a hard return. I've tried the code here below, but it produces an error. Any idea? Thanks! Code:
Sub Problem() Dim aRng As Range Dim iType As Integer Dim Para As Paragraph For iType = 1 To 2 Set aRng = ActiveDocument.StoryRanges(iType) For Each Para In aRng.Paragraphs Para.Range.Characters.Last.InsertBefore " " Next Para Next iType Set aRng = Nothing End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Replace a hard return with a dash in the text of a footnote | RobiNew | Word VBA | 3 | 11-02-2023 09:22 AM |
Macro for Find/replace to remove space before Hard Return | AlfredStreich | Word VBA | 4 | 01-23-2020 03:59 PM |
![]() |
GreenBoy | Word | 2 | 03-11-2018 02:32 AM |
Hard return renders upper case | clafond | Word | 2 | 01-07-2013 12:26 PM |
Hard page return? | markg2 | Outlook | 0 | 09-11-2012 08:49 AM |