Skip to content

Latest commit

 

History

History
101 lines (75 loc) · 3.15 KB

Word.Table.md

File metadata and controls

101 lines (75 loc) · 3.15 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Table object (Word)
vbawd10.chm2385
vbawd10.chm2385
Word.Table
996b58dd-ebc6-ee30-5bfe-c5e51a0f71d6
06/08/2017
medium

Table object (Word)

Represents a single table. The Table object is a member of the Tables collection. The Tables collection includes all the tables in the specified selection, range, or document.

Remarks

Use Tables (Index), where Index is the index number, to return a single Table object. The index number represents the position of the table in the selection, range, or document. The following example converts the first table in the active document to text.

ActiveDocument.Tables(1).ConvertToText Separator:=wdSeparateByTabs

Use the Add method to add a table at the specified range. The following example adds a 3x4 table at the beginning of the active document.

Set myRange = ActiveDocument.Range(Start:=0, End:=0) 
ActiveDocument.Tables.Add Range:=myRange, NumRows:=3, NumColumns:=4

Methods

Name
ApplyStyleDirectFormatting
AutoFitBehavior
AutoFormat
Cell
ConvertToText
Delete
Select
Sort
SortAscending
SortDescending
Split
UpdateAutoFormat

Properties

Name
AllowAutoFit
Application
ApplyStyleColumnBands
ApplyStyleFirstColumn
ApplyStyleHeadingRows
ApplyStyleLastColumn
ApplyStyleLastRow
ApplyStyleRowBands
AutoFormatType
Borders
BottomPadding
Columns
Creator
Descr
ID
LeftPadding
NestingLevel
Parent
PreferredWidth
PreferredWidthType
Range
RightPadding
Rows
Shading
Spacing
Style
TableDirection
Tables
Title
TopPadding
Uniform

See also

Word Object Model Reference

[!includeSupport and feedback]