Article View: adobe.scripting.indesign
Article #16806Re: PAGEITEMS COPY
From: Iolaire McFadden
Date: Wed, 30 Jul 2003 14:07
Date: Wed, 30 Jul 2003 14:07
17 lines
1514 bytes
1514 bytes
I'd like to hear the answer from a professional on this subject as I've be struggling with it this week!
This might help you in the short term. What I've found is it seems as if the item you are coping/pasting must be in the active spread. So I've had to change the active spread:
old_spread_num = 2
'old_spread_num =the spread your selection is on
Set myspread = myDocument.Spreads.Item(old_spread_num)
Set myDocument.Windows.Item(1).ActiveSpread = myspread
myInDesign.Select myDocument.PageItems.Item("lable_item_name"), False
myInDesign.Copy
(VB via Excel)
Then to paste it to another spread I've have to change the spread once more. Thus I had to calculate out how spreads relate to page numbers - which is a painful 50 number array.
Is there an easier way to do this?
Thanks,
iolaire
Technical Details
Message-ID:
<1dea2073.0@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.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1dea2073.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,86125cabd21b391d X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-30 07:08:38 PST From: "Iolaire McFadden" <imcfadden@costar.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.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: PAGEITEMS COPY Message-ID: <1dea2073.0@WebX.la2eafNXanI> Date: Wed, 30 Jul 2003 07:07:18 -0700 References: <1dea2073.-1@WebX.la2eafNXanI> Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit