bold hard returns

J

Julius

Can anyone help me with clearing the formatting of hard
returns via een macro?

The format of the text must stay the same.
 
D

Dave Lett

Hi Julius,

I think you can use the following:

With Selection
.HomeKey unit:=wdStory
With .Find
.ClearFormatting
.text = "^p"
.Font.Bold = True
With .Replacement
.text = ""
.Font.Bold = False
End With
.Execute Replace:=wdReplaceAll
End With
End With

HTH
 
J

Julius

Hi, Dave,

Works a treat.

Thanks a mil.
-----Original Message-----
Hi Julius,

I think you can use the following:

With Selection
.HomeKey unit:=wdStory
With .Find
.ClearFormatting
.text = "^p"
.Font.Bold = True
With .Replacement
.text = ""
.Font.Bold = False
End With
.Execute Replace:=wdReplaceAll
End With
End With

HTH



.
 

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