Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2008

Tip: Looking for answers? Try searching our database.

Creating a Find and Replace Macro in Powerpoint

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
VBAimf - 16 Feb 2008 17:09 GMT
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
Shauna Kelly - 16 Feb 2008 22:01 GMT
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

> I'd like to create a Find and Replace Macro in Powerpoint that I can
> use each day on a different Powerpoint file.
[quoted text clipped - 41 lines]
>    Selection.Find.Execute Replace:=wdReplaceAll
> End Sub
VBAimf - 17 Feb 2008 17:54 GMT
On Feb 16, 5:01 pm, "Shauna Kelly"
<ShaunaKe...@SendNoSpamToShaunaKelly.com> wrote:
> Hi
>
[quoted text clipped - 55 lines]
>
> - Show quoted text -

Thanks.  I overlooked the fact that I was in the Word arena.  I'll
check with the Power Point Folks.  :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.