Article View: adobe.scripting.indesign
Article #19334Re: Please, help with find and replace within a specific object (Text Frame?).
From: Iolaire McFadden
Date: Thu, 26 Dec 2002 21:29
Date: Thu, 26 Dec 2002 21:29
19 lines
1349 bytes
1349 bytes
Ok, I was able to get it to work, it might be because of how I was calling up InDesign by not Dim'ing it?
Sub working_replace()
Dim myInDesign As InDesign.Application
Set myInDesign = CreateObject("InDesign.Application")
myInDesign.FindPreferences = idNothing
myInDesign.ChangePreferences = idNothing
Set myDocument = myInDesign.ActiveDocument
Set mypage = myDocument.MasterSpreads.Item("A-Master")
Set mytextframe = mypage.TextFrames.Item("Market_Title")
mytextframe.Search "WASHINGTON, D.C.", False, False, "CHICAGO"
End Sub
Thanks,
iolaire
Technical Details
Message-ID:
<1de71592.2@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de71592.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,88594b52b8ecdcde X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-12-26 13:37:34 PST From: "Iolaire McFadden" <imcfadden@costar.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Please, help with find and replace within a specific object (Text Frame?). Message-ID: <1de71592.2@WebX.la2eafNXanI> Date: Thu, 26 Dec 2002 13:29:26 -0800 References: <1de71592.-1@WebX.la2eafNXanI> Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit