Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 90000

Re: Delete entire row if any cell is blank

$
0
0

Hi,

 

Try this.

 

var doc = app.activeDocument,    _tables = doc.stories.everyItem().tables.everyItem().getElements();

for(var i =0;i<_tables.length;i++)
{        var _rows = _tables[i].rows;        for(var j =0;j<_rows.length;j++)        {                var _cells = _rows[j].cells;                for(var k =0;k<_cells.length;k++)                {                    //alert(_cells[k])                        if(_cells[k].contents == "")                        {                                _rows[j].remove();                            }                    }            }    }

 

Regards,

Chinna


Viewing all articles
Browse latest Browse all 90000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>