Article View: adobe.scripting.indesign
Article #21049Re: VB and 2.0 Page number of a Table Cell
From: Olav Kvern
Date: Mon, 13 May 2002 18:21
Date: Mon, 13 May 2002 18:21
15 lines
1455 bytes
1455 bytes
Kathleen-- The parent of the cell is the table, and the parent of the table is a text frame, and the parent of a text frame is a page, and the name of the page is the page number.<g> So: Rem Given a reference to a cell "myCell" (and assuming that the text frame containing the table is not Rem inside another frame or group... myPageName = myCell.Parent.Parent.Parent.Name myPageIndex = myCell.Parent.Parent.Parent.Index I call this "climbing the Parent tree." If the text frame is inside another frame, or inside a group, it gets more complicated. Thanks, Ole
Technical Details
Message-ID:
<ef87b0d.0@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!hub1.meganetnews.com!newsfeed.sjc.globix.net!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef87b0d.-1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,147f9b4dbdbb6c48 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-05-13 11:38:06 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!hub1.meganetnews.com!newsfeed.sjc.globix.net!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: VB and 2.0 Page number of a Table Cell Message-ID: <ef87b0d.0@WebX.aaQKaf7vad4> Date: Mon, 13 May 2002 11:21:40 -0700 References: <ef87b0d.-1@WebX.aaQKaf7vad4> Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit