🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18270

Re: VB Navigating spreads

#18270
From: Olav Kvern
Date: Fri, 11 Apr 2003 18:40
18 lines
1106 bytes
Phil--

No, but pages have a DocumentOffset property. So...



Rem Given a Spread "mySpread" and a Document "myDocument" 
Set myPreviousPage = myDocument.Pages.Item(mySpread.Pages.Item(1).DocumentOffset - 1) 
Set myPreviousSpread = myPreviousPage.Parent 




You'll probably also want to check to see that mySpread.Pages.Item(1).DocumentOffset <> 1 (the first page in the document).

Thanks,

Ole
Technical Details
Message-ID: <1de8b37b.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8b37b.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,862e672689d55a02
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-11 12:08:01 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-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: VB Navigating spreads
Message-ID: <1de8b37b.0@WebX.la2eafNXanI>
Date: Fri, 11 Apr 2003 11:40:28 -0700
References: <1de8b37b.-1@WebX.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit