• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Powerpoint 2004 Search and replace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Powerpoint 2004 Search and replace


  • Subject: Re: Powerpoint 2004 Search and replace
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 12 Aug 2005 15:36:41 -0700
  • Thread-topic: Powerpoint 2004 Search and replace

Title: Re: Powerpoint 2004 Search and replace
On 8/12/05 2:20 PM, "Paul Berkowitz" <email@hidden> wrote:

tell app "PowerPoint"
    do Visual Basic "
        For Each sld In Application.ActivePresentation.Slides
            For Each shp In sld.Shapes
                shp.TextFrame.TextRange.Replace FindWhat:="CompanyX", _
                    ReplaceWhat:=\"CompanyY\", WholeWords:=True
            Next shp
       Next sld
    "
end tell

Sorry, I forgot some quote escapes:

tell app "PowerPoint"
    do Visual Basic "
        For Each sld In Application.ActivePresentation.Slides
            For Each shp In sld.Shapes
                shp.TextFrame.TextRange.Replace FindWhat:=\"CompanyX\", _
                    ReplaceWhat:=\"CompanyY\", WholeWords:=True
            Next shp
       Next sld
    "
end tell



--
Paul Berkowitz
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Powerpoint 2004 Search and replace (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: set offsetGrif to offset of keyword in webText
  • Next by Date: Vote!
  • Previous by thread: Re: Powerpoint 2004 Search and replace
  • Next by thread: set offsetGrif to offset of keyword in webText
  • Index(es):
    • Date
    • Thread