Supercharge your PowerPoint productivity with
Supercharge your PPT Productivity with PPTools - Click here to learn more.

Proud member of


Image Export converts PowerPoint slides to high-quality images.

PPT2HTML exports HTML even from PowerPoint 2010 and 2013, gives you full control of PowerPoint HTML output, helps meet Section 508 accessibility requirements

Merge Excel data into PowerPoint presentations to create certificates, awards presentations, personalized presentations and more

Resize your presentations quickly and without distortion

Language Selector switches the text in your presentation from one language to another

FixLinks prevents broken links when you distribute PowerPoint presentations

Shape Styles brings styles to PowerPoint. Apply complex formatting with a single click.

Changing the style of added PowerPoint 2007 tables


When you add a new table to a slide in PowerPoint 2007, it takes on the default table style defined by the presentation's theme. Or template. Or something. But it may not be what you want. So how do you change the style?


This macro shows you the name and id of the selected table'scurrent style, then sets the style to the "No style, No grid" style.
By first choosing the style you want, you can view its id in the Immediate window, then copy/paste that into a modified version of the code below to set the style of a table in your own code.

Sub thing()
    Dim oTblStyle As TableStyle
    With ActiveWindow.Selection.ShapeRange(1)
        With .Table.Style
            Debug.Print .Name
            Debug.Print .Id
        End With
        With .Table
            .ApplyStyle ("{2D5ABB26-0587-4C30-8999-92F81FD0307C}")
        End With
    End With
End Sub

See How do I use VBA code in PowerPoint? to learn how to use this example code.

Did this solve your problem? If so, please consider supporting the PPT FAQ with a small PayPal donation.
Page copy protected against web site content infringement by Copyscape Contents © 1995 - 2022 Stephen Rindsberg, Rindsberg Photography, Inc. and members of the MS PowerPoint MVP team. You may link to this page but any form of unauthorized reproduction of this page's contents is expressly forbidden.

Supercharge your PPT Productivity with PPTools

content authoring & site maintenance by
Friday, the automatic faq maker (logo)
Friday - The Automatic FAQ Maker

Changing the style of added PowerPoint 2007 tables
Last update 07 June, 2011