Macro to run without any popups

A

ASA

I am a newbie but thought someone in this group could assist

Trying to accomplish the following:
Search for all ^p and replace them with ^| (soft return) and then find
the following text “please call with questions” and put that in bold
anywhere in the sentence.

However I am able to do the soft return with a macro but I don’t want
any popups to happen when I run the macro.

Is that possible?
 
G

Greg Maxey

Sub ScratchMaco()
Dim oRng As Word.Range
Set oRng = ActiveDocument.Content
With oRng.Find
.Text = "^p"
.Replacement.Text = "^l"
.Execute Replace:=wdReplaceAll
End With
Set oRng = ActiveDocument.Content
With oRng.Find
.Text = "please call with questions"
.Format = True
.Replacement.Text = "^&"
.Replacement.Font.Bold = True
.Execute Replace:=wdReplaceAll
End With
End Sub
 

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