3 Replies Latest reply on Aug 1, 2018 5:03 AM by Loic.Aigon

    Trying to replace and delete cell style...but it's not working

    michaelr39634723 Level 1

      Hi.

       

      I've been using the following code to delete paragraph and character styles, but when I've tried it on cell styles it just isn't working:

       

      var myDoc = app.activeDocument; 

       

      try{

      myDoc.cellStyles.item("Cell Style 1").remove("Cell Style 2");

      }catch(e){}

       

      Can anyone point me in the right direction?

       

      Thanks