🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16306

Re: Simple: How to apply paragraph style (VB)

#16306
From: Iolaire McFadden
Date: Tue, 23 Sep 2003 21:11
8 lines
1249 bytes
Someone else probably will have a better example, but this is how I apply the "First" style before I insert text using insertion points. Maybe it will help you form your applystyle?

Set myinsertionpoint = myTable.Rows.Item(1).Cells.Item(1).InsertionPoints.Item(-1)
myinsertionpoint.ApplyStyle myDocument.ParaStyles.Item("First")
myinsertionpoint.TextContents = "text to place"

Good luck,
iolaire
Technical Details
Message-ID: <2ccd83e5.0@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeeds.sol.net!hammer.uoregon.edu!arclight.uoregon.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd83e5.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,67325c78ac755805
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-23 14:38:09 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-08!supernews.com!newsfeeds.sol.net!hammer.uoregon.edu!arclight.uoregon.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Simple: How to apply paragraph style (VB)
Message-ID: <2ccd83e5.0@webx.la2eafNXanI>
Date: Tue, 23 Sep 2003 14:11:19 -0700
References: <2ccd83e5.-1@webx.la2eafNXanI>
Lines: 11
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit