Skip to main content
Participant
March 1, 2025
Answered

Is there a way to apply a style to multiple tables en masse and clear overrides

  • March 1, 2025
  • 2 replies
  • 761 views

I have a document which is full of imported tables that have the basic indesign style applied to them, I want to somehow select all of the tables at once, apply a different table style to them, and clear any overrides, does anyone know of a script or other quick way to do this? 

    Correct answer Robert at ID-Tasker

    @Bora23108177ttvp

     

    The code above can also be modified to style ALL tables in ALL Stories in the active document - if you need. 

     

    app.activeDocument.stories.everyItem().tables.everyItem().appliedTableStyle = "enter name of your style";
    
    app.activeDocument.stories.everyItem().tables.everyItem().clearTableStyleOverrides(); 

     

    2 replies

    Robert at ID-Tasker
    Legend
    March 1, 2025

    @Bora23108177ttvp

     

    Do you want exactly the same Table Style apply to all tables - or if different ones - what would be the "key"?

     

    Robert at ID-Tasker
    Legend
    March 1, 2025

    @Bora23108177ttvp 

     

    This will let you apply specified table style to all tables in the current Story - you just need to select some text in this story - or a TextFrame: 

     

     

    app.selection[0].parentStory.texts[0].tables.everyItem().appliedTableStyle = "enter name of your style";
    
    app.selection[0].parentStory.texts[0].tables.everyItem().clearTableStyleOverrides();

     

     

    https://creativepro.com/how-to-install-scripts-in-indesign/

     

    Peter Kahrel
    Community Expert
    Community Expert
    March 1, 2025

    That should be 

    app.selection[0].parentStory etc.
    kglad
    Community Expert
    Community Expert
    March 1, 2025

    is this an acrobat pro question?

    Participant
    March 1, 2025

    No it's an indesign question. 

    kglad
    Community Expert
    Community Expert
    March 1, 2025

    oops, sorry.  i see that reference in your first post.

     

    anyway, in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

    p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



    <"moved from using the community">