Remove '

S

Steved

Hello from Steved

In VBA how do I please remove ' from Louise's Gold to leave Louises Gold

Thankyou.
 
S

Shauna Kelly

Hi Steved

With ActiveDocument.Range.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "Louise's Gold"
.Replacement.Text = "Louises Gold"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = True
.MatchWholeWord = True
.Execute Replace:=wdReplaceAll
End With

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
S

Steved

Yes It helped

Thankyou.

Shauna Kelly said:
Hi Steved

With ActiveDocument.Range.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "Louise's Gold"
.Replacement.Text = "Louises Gold"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = True
.MatchWholeWord = True
.Execute Replace:=wdReplaceAll
End With

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
Top