Share via


HasTable Property

MsoTriState

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue The specified shape is a table.

Example

This example checks the currently selected shape to see if it is a table. If it is, the code sets the width of column one to one inch (72 points).

With ActiveWindow.Selection.ShapeRange
    If .HasTable = msoTrue Then
       .Table.Columns(1).Width = 72
    End If
End With

Applies to | Shape Object | ShapeRange Collection Object

See Also | Working with Tables