Article View: adobe.scripting.indesign
Article #17665Re: Search within selection (VB)?
From: Olav Kvern
Date: Thu, 22 May 2003 01:34
Date: Thu, 22 May 2003 01:34
15 lines
1163 bytes
1163 bytes
Ana-- I'm assuming that you mean a text search--in that case, the first item of the selection will be of type Text (unless it's an InsertionPoint), so: Rem Assuming the selection is in the variable "mySelection" and the string you want to search for is "myString" Set myFoundItems = mySelection.Item(1).Search(myString) Thanks, Ole
Technical Details
Message-ID:
<1de938fb.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de938fb.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,6c9b01cfe9b2bc67 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-21 18:38:30 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Search within selection (VB)? Message-ID: <1de938fb.0@WebX.la2eafNXanI> Date: Wed, 21 May 2003 18:34:49 -0700 References: <1de938fb.-1@WebX.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit