Article View: adobe.scripting.indesign
Article #8632[VB] Getting a reference to last inserted PageItem
From: stepanych
Date: Mon, 02 Oct 2006 07:18
Date: Mon, 02 Oct 2006 07:18
8 lines
886 bytes
886 bytes
Dear friends, please, advise as I can receive the reference to last INSERTED object.
Set myInDesign = CreateObject("InDesign.Application.CS2")
Set myDocument = myInDesign.ActiveDocument
Set myTextFrame = myDocument.TextFrames.LastItem '(or FirstItem)
myTextFrame.Select
Probably, it is wrong...
Technical Details
Message-ID:
<3bc1d7c2.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,2daf2f636dcf342a,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: stepanych@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [VB] Getting a reference to last inserted PageItem Message-ID: <3bc1d7c2.-1@webcrossing.la2eafNXanI> Date: Mon, 2 Oct 2006 00:18:20 -0700 Lines: 9 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit