Skip to main content
Participant
Mar 1, 2025 3:01 PM UTC
Answered

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

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? 

    Robert at ID-Tasker
    Robert at ID-TaskerCorrect answer
    Legend
    Mar 1, 2025 9:03 PM UTC

    @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(); 

     

    11 replies

    Participant
    Sep 29, 2026 5:57 AM UTC

    I ran into a similar issue and ended up creating an InDesign script for this.

    It can apply a selected Table Style to multiple tables at once, either across the entire document or within a specific scope. It also includes options for clearing table/cell overrides, fitting table widths proportionally, converting the first row to a header row, and checking the affected tables before making changes.

    I’ve made the script available here if anyone finds it useful:
    https://lentofolio.gumroad.com/l/apply-table-styles

    Disclosure: I’m the developer of the script.

    Translate
    Robert at ID-Tasker
    Legend
    Mar 1, 2025 6:32 PM UTC

    @Bora23108177ttvp

     

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

     

    Translate
    Robert at ID-Tasker
    Legend
    Mar 1, 2025 6:42 PM UTC

    @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/

     

    Translate
    Peter Kahrel
    Community Expert
    Community Expert
    Mar 1, 2025 8:59 PM UTC

    That should be 

    app.selection[0].parentStory etc.
    Translate
    kglad
    Community Expert
    Community Expert
    Mar 1, 2025 3:08 PM UTC

    is this an acrobat pro question?

    Translate
    Participant
    Mar 1, 2025 3:49 PM UTC

    No it's an indesign question. 

    Translate
    kglad
    Community Expert
    Community Expert
    Mar 1, 2025 4:16 PM UTC

    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">

     

    Translate