6 Replies Latest reply on Feb 3, 2013 11:53 AM by Laubender

    tartgeting specific elements in tables and applying style

    mrfsrf5 Level 1

      Hi all,

      I must say that I tried every method I could think of but with no result.


      I'm trying to format specific element (in this case the second row) in a table and apply paragraph style to every cell inside that row.

      Here is the code snippet...


      myDoc = app.activeDocument;

      myTableNaslovHR= myDoc.stories.item(0).tables.item(0);

      var pStyles = app.activeDocument.paragraphStyles;



      myTableNaslovHR.rows.item(1).cells.everyItem().texts[0].appliedParagraphStyle = pStyles.item("[Fusnota]");




      thanks in advance