![]() |
|
#5
|
|||
|
|||
|
Okay, it appears it is the option "Smart Cut and Paste that causes the issue with not being able to delete the space directly:
Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oRng As Range
Dim bSCP As Boolean
bSCP = Options.PasteSmartCutPaste
Options.PasteSmartCutPaste = False
Set oRng = ActiveDocument.StoryRanges(wdFootnotesStory)
With oRng.Find
.Text = " ^p"
While .Execute
oRng.Characters.First.Delete
oRng.Collapse wdCollapseEnd
Wend
End With
Options.PasteSmartCutPaste = bSCP
lbl_Exit:
Exit Sub
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Find / Replace hard Carriage Return with Line break.
|
GreenBoy | Word | 2 | 03-11-2018 02:32 AM |
Code to find numerical string + space throughout document & replace them with Comma
|
Robert Kay | Word VBA | 6 | 02-21-2018 04:41 PM |
Find and Replace with space
|
cheech1981 | Word | 3 | 03-29-2017 02:33 PM |
| Hard page return? | markg2 | Outlook | 0 | 09-11-2012 08:49 AM |
remove color from find/replace?
|
Cobb78 | Word | 1 | 05-26-2012 06:16 PM |