Objeto Table (Word)Table object (Word)
Representa uma única tabela.Represents a single table. O objeto Table é um membro das tabelas coleção.The Table object is a member of the Tables collection. Coleção Tables inclui todas as tabelas na seleção especificada, intervalo ou documento.The Tables collection includes all the tables in the specified selection, range, or document.
ComentáriosRemarks
Use Tables (index), onde index é o número de índice, para retornar um único objeto Table .Use Tables (Index), where Index is the index number, to return a single Table object. O número de índice representa a posição da tabela na seleção, intervalo ou documento.The index number represents the position of the table in the selection, range, or document. O exemplo a seguir converte a primeira tabela do documento ativo em texto.The following example converts the first table in the active document to text.
ActiveDocument.Tables(1).ConvertToText Separator:=wdSeparateByTabs
Use a Adicionar método para adicionar uma tabela no intervalo especificado.Use the Add method to add a table at the specified range. O exemplo a seguir adiciona uma 3x4 tabela no início do documento ativo.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
MétodosMethods
PropriedadesProperties
Confira tambémSee also
Referência do modelo de objeto do WordWord Object Model Reference
Suporte e comentáriosSupport and feedback
Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação?Have questions or feedback about Office VBA or this documentation? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.