🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17636

Re: Finding/changing table cell/row in a document

#17636
From: roberto soto
Date: Tue, 27 May 2003 17:46
20 lines
1472 bytes
Hi Lukas

if the all tables have the same number of heading's row, you can use this:

Private Sub Command1_Click()
    Set myInDesign = CreateObject("InDesign.Application.2.0")
    Set myDocument = myInDesign.ActiveDocument
    For i = 1 To myDocument.TextFrames.Count
        Set myTextFrame = myDocument.TextFrames.Item(i)
        For j = 1 To myTextFrame.ParentStory.Tables.Count
            Set myTable = myTextFrame.ParentStory.Tables.Item(j)
            'Here change number 1 with specific position or create a loop
            myTable.Rows.Item(1).BottomEdgeStrokeWeight = 0.25
        Next
    Next
End Sub

In other case you can check in another loop for stroke 1pt and change it.

Roberto
Technical Details
Message-ID: <1de945f4.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de945f4.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,20695764bca0383c
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-27 11:08:14 PST
From: "roberto soto" <roberto1soto@hotmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Finding/changing table cell/row in a document
Message-ID: <1de945f4.0@WebX.la2eafNXanI>
Date: Tue, 27 May 2003 10:46:54 -0700
References: <1de945f4.-1@WebX.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit