🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16463

[VB] Search problem

#16463
From: Alex Bu
Date: Fri, 05 Sep 2003 00:06
14 lines
1164 bytes
Hi,

I need to do some search and replace in a table. Here's what I do:

Set myTable = MyIndesign.Selection.Item(1)

Set myReplace0 = myTable.Search("^s", False, False, "")
Set myReplace1 = myTable.Search(" ", False, False, "")
Set myReplace2 = myTable.Search(":", False, False, ".")

The thing is it only seems to work for the first cell of the table. This happens when I select the table. When I select only the textframe Indesign crashes. Any ideas how to get this to work?

Thanks
Alex
Technical Details
Message-ID: <2ccd4178.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,602b2494ebf84b4a,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-04 17:07:50 PST
From: "Alex Bu" <12three@gmx.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: [VB] Search problem
Message-ID: <2ccd4178.-1@webx.la2eafNXanI>
Date: Thu, 4 Sep 2003 17:06:24 -0700
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit