Article View: adobe.scripting.indesign
Article #19740Re: Creating tables on the fly, Windows InDesign
From: Olav Kvern
Date: Wed, 20 Nov 2002 17:46
Date: Wed, 20 Nov 2002 17:46
31 lines
1409 bytes
1409 bytes
GeekGod--
No, that's just the example document. You should be able to take the part beginning with:
' clear out existing data
myInDesign.FindPreferences = idNothing
...and graft it into your script.
This one makes a table from the text having the specified character style--if you want to place the table *before* that text, you can tell the first insertion point in the found text to make the table, as in:
If FoundText.Count > 0 Then
For myCounter = FoundText.Count To 1 Step -1
Set myFoundItem = FoundText.Item(myCounter)
myFoundItem.InsertionPoints.Item(1).Tables.Add
Next
End If
Thanks,
Ole
Technical Details
Message-ID:
<1de68f3a.20@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de68f3a.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,734b037c90d04195 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-20 10:37:44 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Creating tables on the fly, Windows InDesign Message-ID: <1de68f3a.20@WebX.la2eafNXanI> Date: Wed, 20 Nov 2002 09:46:10 -0800 References: <1de68f3a.-1@WebX.la2eafNXanI> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit