Copy link to clipboard
Copied
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
The answer from Michel [FRIdNGE] was:
myDoc.cellStyles.item("Cell Style 1").remove(myDoc.cellStyles.item("Cell Style 2"));
Copy link to clipboard
Copied
Sorry for the removal. Bad manipulation. Seeing how to restore.
Michel [FRIdNGE] May I invite you to offer your solution again so I can validate it as correct again ?
Copy link to clipboard
Copied
The answer from Michel [FRIdNGE] was:
myDoc.cellStyles.item("Cell Style 1").remove(myDoc.cellStyles.item("Cell Style 2"));
Copy link to clipboard
Copied
Yes but I hope he can get in so we can attribute its points back