inserting a space (globally)

G

Guest

After copying a pdf to word, and globally removing all paragraph markers, is
there a way to insert a space where the paragraph markers existed?
 
H

Helmut Weber

Once you have removed paragraph marks, they are gone.
Replace them with a space instead of removing them.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
G

Guest

How do I globally find/replace; I enter ^p to remove the paramarks, but I
don't know the code to tell word to insert the space. The documents are far
to long to remove and replace hundreds of paragraph marks one by one. I
realize that once removed , the para marks are gone (unless the "undo"
feature is used). So, what I am asking is how to replace the paragraph marks
with a space.
 
H

Helmut Weber

Sub testx23()
Dim rdcm As Range
Set rdcm = ActiveDocument.Range
With rdcm.Find
.Text = Chr(13)
.Replacement.Text = " "
.Execute Replace:=wdReplaceAll
End With
End Sub

HTH

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
S

Suzanne S. Barnhill

1. Ctrl+H to open the Replace dialog.

2. In the "Find what" box, type ^p.

3. In the "Replace with" box, press the Spacebar once.

4. Replace All.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top