Article View: adobe.scripting.indesign
Article #18758Re: VB: Get the value of the Label from a selected TextFrame
From: Olav Kvern
Date: Mon, 03 Mar 2003 22:58
Date: Mon, 03 Mar 2003 22:58
24 lines
1275 bytes
1275 bytes
Dennis--
Here's an example:
Dim myInDesign As InDesign.Application
Set myInDesign = CreateObject("InDesign.Application.2.0")
Set mySelection = myInDesign.Selection
If mySelection.Count > 0 Then
For myCounter = 1 To mySelection.Count
Set myPageItem = mySelection.Item(myCounter)
If TypeName(myPageItem) <> "Text" And TypeName(myPageItem) <> "InsertionPoint" Then
MsgBox "Page item label is: " & myPageItem.Label
End If
Next
End If
Thanks,
Ole
Technical Details
Message-ID:
<1de811da.4@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de811da.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,2d2312c5afbdac7f X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-03-03 15:07:41 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-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: VB: Get the value of the Label from a selected TextFrame Message-ID: <1de811da.4@WebX.la2eafNXanI> Date: Mon, 3 Mar 2003 14:58:58 -0800 References: <1de811da.-1@WebX.la2eafNXanI> Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit