Article View: adobe.scripting.indesign
Article #17548Re: Finding/changing table cell/row in a document
From: roberto soto
Date: Wed, 28 May 2003 11:33
Date: Wed, 28 May 2003 11:33
24 lines
1712 bytes
1712 bytes
Hi Lukas
If this stroke is the only one with 1pt thick, this will work:
Private Sub Command3_Click()
Set myInDesign = CreateObject("InDesign.Application.2.0")
Set myDocument = myInDesign.ActiveDocument
myDocument.ViewPreferences.HorzMeasurementUnits = idMSPoints
myDocument.ViewPreferences.VertMeasurementUnits = idMSPoints
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
For k = 1 To myTable.Rows.Count
If myTable.Rows.Item(k).BottomEdgeStrokeWeight = 1 Then
myTable.Rows.Item(k).BottomEdgeStrokeWeight = 0.25
End If
Next
Next
Next
End Sub
Roberto
Technical Details
Message-ID:
<1de945f4.2@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<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-28 04:38:11 PST From: "roberto soto" <roberto1soto@hotmail.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news2.euro.net!newsfeed.freenet.de!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.2@WebX.la2eafNXanI> Date: Wed, 28 May 2003 04:33:26 -0700 References: <1de945f4.-1@WebX.la2eafNXanI> Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit