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

Re: Can you make a script for select cells?

$
0
0

Hi John,

 

Try this.

 

var doc = app.activeDocument,    _selection = app.selection[0],    _object = [];
if(_selection instanceof Table)
{        for(var i =0;i<_selection.rows.length;i++)        {                var con ="";                for(var j =0;j<_selection.rows[i].contents.length;j++)                {                        con +=_selection.rows[i].contents[j];                    }                if(con != "")                {                        _object.push(_selection.rows[i]);                        app.select(_selection.rows[0]);                        app.select(_selection.rows[i], SelectionOptions.ADD_TO)                    }                else                {                        break;                    }            }    }
else
{        alert("Select a table")    }

 

Regards,

Chinna


Viewing all articles
Browse latest Browse all 114192

Trending Articles



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