Article View: adobe.scripting.indesign
Article #16752Re: Text selection to table
From: Olav Kvern
Date: Thu, 31 Jul 2003 10:22
Date: Thu, 31 Jul 2003 10:22
28 lines
1354 bytes
1354 bytes
Keith-- If you have a paragraph, you can simply tell it to make a table. When you do that, InDesign will enter the text of the paragraph in the table. So: Set myTable = myParagraph.Tables.Add Also note that Paragraph.Selection will never return anything (except maybe an error<g>). Selection is a property of the application, a document, or a window. If you have a selection (not necessarily a paragraph), and want to convert it to a table, you can use: Rem Given a reference to the InDesign application "myInDesign"... myInDesign.Selection.Item(1).Tables.Add So you were very close! Thanks, Ole
Technical Details
Message-ID:
<1dea21e1.3@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1dea21e1.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c47b1f2276d2c56c X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-31 03:38:10 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Text selection to table Message-ID: <1dea21e1.3@WebX.la2eafNXanI> Date: Thu, 31 Jul 2003 03:22:54 -0700 References: <1dea21e1.-1@WebX.la2eafNXanI> Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit