Copy link to clipboard
Copied
Hi,
I have to set left indent value as "1 mm" for a particular column or a cell in a table using scripts. How can I set the indent value for my table. Kindly guide me.
Regards,
Revathi
HI..
This one change for all colum cell to 1mm.. change as per your requirement
app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().paragraphs.everyItem().leftIndent= "1 mm";
Copy link to clipboard
Copied
HI..
This one change for all colum cell to 1mm.. change as per your requirement
app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().paragraphs.everyItem().leftIndent= "1 mm";
Copy link to clipboard
Copied
Thanks for your reply.
But I want set Indent for a particular column in a table. Kindly guide me.
Regards,
Revathi
Copy link to clipboard
Copied
Are you going to select the column or need to specify the column in script?
Copy link to clipboard
Copied
Hi,
I am going to specify the column in the script.
Regards,
Revathi
Copy link to clipboard
Copied
The below code will change the first table in the document, second column... so if you want some other column change the values
app.activeDocument.stories.everyItem().tables[0].columns[1].cells.everyItem().paragraphs.everyItem().leftIndent= "1 mm";
Copy link to clipboard
Copied
hi,
Thanks for your reply to worked for me. It's working fine.
Regards,
Revathi