13 Replies Latest reply on May 19, 2017 8:14 AM by lf.corullon

    Apply Table style contained in TableStyleGroup

    Peter Stnsz Level 1

      Hi I am trying to apply Table style to all Tables in the story:


          for (s=0; s<app.activeDocument.stories.length; s++)  
          for (t=0; t<app.activeDocument.stories[s].tables.length; t++)  
               app.activeDocument.stories[s].tables[t].TableStyleGroup.itemByName("Group").TableStyle.itemByName("Table Style 1")


      What am I doing wrong?