![]() Use the Add method with the Rows or Columns collection to add a row or column of cells. ActiveDocument.Tables(1).Rows(1).Cells(1).Shading _ The following example applies shading to the first cell in the first row. Set m圜ell = ActiveDocument.Tables(1).Cell(Row:=1, Column:=2) The following example applies shading to the second cell in the first row in table one. Use Cell (row, column), where row is the row number and column is the column number, or Cells ( index), where index is the index number, to return a Cell object. The following example adds a cell before the first cell in myTable. You can also use the InsertCells method of the Selection object to insert new cells. Use the Add method to add a Cell object to the Cells collection. ![]() The following example returns the number of cells in the current row. The following example formats the cells in the first row in table one in the active document to be 30 points wide. Use the Cells property to return the Cells collection. A collection of Cell objects in a table column, table row, selection, or range. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |