🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16425

Re: [VB] Ittarate over pageitems won't work

#16425
From: Iolaire McFadden
Date: Fri, 12 Sep 2003 12:37
22 lines
1614 bytes
Is "Header" unique or is it found through out the document? Usually I now use unique label names so I do not have to loop through the document.

Would this code chunk to place an rtf file help you figure this out?

Public text_path
Sub test_place_copy()
Dim myInDesign As InDesign.Application
Set myInDesign = CreateObject("InDesign.Application")
Set myDocument = myInDesign.ActiveDocument
' Header is the first text frame in string of linked text frames.
' remove current body text
Do
myDocument.TextFrames.Item("Header").Contents = ""
Loop Until myDocument.TextFrames.Item("Header").Contents = ""
' place the text from this path (rtf works much better than word)
text_path = "c:\text.rtf"
' place the text
myDocument.TextFrames.Item("Header").Place (text_path)
myDocument.Links.Item(-1).Unlink
End Sub
Good luck,
iolaire
Technical Details
Message-ID: <2ccd6887.2@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!212.20.144.77.MISMATCH!gatel-ffm!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd6887.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,434b6b988840c727
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-12 05:37:57 PST
From: "Iolaire McFadden" <imcfadden@costar.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!212.20.144.77.MISMATCH!gatel-ffm!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Ittarate over pageitems won't work
Message-ID: <2ccd6887.2@webx.la2eafNXanI>
Date: Fri, 12 Sep 2003 05:37:00 -0700
References: <2ccd6887.-1@webx.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit