Creating a Find and Replace Macro in Powerpoint

V

VBAimf

I'd like to create a Find and Replace Macro in Powerpoint that I can
use each day on a different Powerpoint file.

I'm very inexperienced at VBA. However, I was able to use the macro
recorder in MS Word to record a find and replace macro, which I placed
into its own template document, which covers over a hundred items.
Talk about the timesaver of the century.

I also have to edit Powerpoint documents. My edits include text in
textboxes in the slide as well as note pages.

1. Since Powerpoint doesn't have a macro recorder, could I copy the
text below that is used in MS Word into Powerpoint?

2. How would I save it to be available over time (since I edit
documents everyday)?


I recognize that this question is probably very basic for the talent I
see here, but it saves me considerable time doing edits that a
computer can handle in seconds. Thanks.

Jay
VBA is my friend (VBAimf)



Sub Godtest()
'
' God test Macro
'
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "god"
.Replacement.Text = "God"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
 
S

Shauna Kelly

Hi

While each of the Office applications uses VBA, they all rely on their
own object model. Code created in one application won't, generally, run
in another.

I suggest you re-post to one of the PowerPoint newsgroups.

Hope this helps.

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

VBAimf

Hi

While each of the Office applications uses VBA, they all rely on their
own object model. Code created in one application won't, generally, run
in another.

I suggest you re-post to one of the PowerPoint newsgroups.

Hope this helps.

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













- Show quoted text -

Thanks. I overlooked the fact that I was in the Word arena. I'll
check with the Power Point Folks. :)
 

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