🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #21058

Re: VB and 2.0 Page number of a Table Cell

#21058
From: Olav Kvern
Date: Mon, 13 May 2002 21:34
13 lines
1393 bytes
Kathleen-- 

Okay, I've got one. Now...I told you this would be sleazy, right?<g> 

Rem Given a cell "myCell" in a document "myDocument"... Set myPolygon = myCell.CreateOutlines(False) Set myPage = myPolygon.Item(1).Parent myDocument.Undo myPageName = myPage.Name myPageIndex = myPage.Index  

When you use CreateOutlines with the DeleteOriginal parameter set to false, you get a polygon floating on top of the original cell. That polygon is not part of the table, so its parent is the page. You can then safely undo the action to get rid of the converted characters. 

Hope this works for you--at least until I can come up with a more elegant method. 

Thanks, 

Ole
Technical Details
Message-ID: <ef87b0d.4@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <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 15:07:42 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!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.4@WebX.aaQKaf7vad4>
Date: Mon, 13 May 2002 14:34:09 -0700
References: <ef87b0d.-1@WebX.aaQKaf7vad4>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit