• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Setting cell styles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting cell styles


  • Subject: Setting cell styles
  • From: Jeremy Roussak <email@hidden>
  • Date: Fri, 16 Nov 2012 17:50:31 +0000

Is there an easy way to set all the cells in a particular column of a table to the same style? I know I can loop, and this works:

tell active document
set mytable to table 1

set myttr to Word style "ttr"

end tell

set rowCount to count mytable's rows


repeat with i from 1 to rowCount
set txt to text object of (get cell from table mytable row i column 2)
set txt's style to myttr
end repeat

but it doesn't look nice. 

TIA

Jeremy


Jeremy Roussak
email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Setting cell styles
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Scripting Word 2011
  • Next by Date: Re: Setting cell styles
  • Previous by thread: Re: Scripting Word 2011
  • Next by thread: Re: Setting cell styles
  • Index(es):
    • Date
    • Thread