![active tables microsoft word active tables microsoft word](https://www.learningcomputer.com/images/word_insert_tab2b.jpg)
Under Options, select options for breaking rows across pages or creating header rows. Under Size, set the row's height by selecting Preferred height and choosing a size you can further refine the height by selecting an option in the Row height is box. If you don't want text wrapping, select None.Ĭlick Borders and Shading to change the border style, line color, and line width of your table.Ĭlick Options to set more table properties, including top and bottom cell margins, cell spacing, and automatic resizing of cell contents.įirst, click in the row or select the rows you want to change, right-click, choose Table Properties, and then click the Row tab. Under Text wrapping, select Around if you want nearby text on your page to wrap around your table you can make text wrapping more precise by clicking Positioning, and then choosing options in the Table Positioning dialog box. If you select Left, you can select an indentation distance in the Indent from Left box. Under Alignment, choose whether you want to align your table to the left, center, or right of page. In the Measure in box, choose whether you want to measure the width in inches or a percentage of the page. Under Size, set the table's overall width by selecting Preferred width and choosing a size. In this articleĬlick the Table tab to apply settings to your entire table:
#Active tables microsoft word how to
If you are interested in a more detailed discussion on how to programmatically handle tables, you can find an excellent article here: (office.11).Note: If you want to set properties for a particular row, column, or cell, click in that row, column, or cell before making changes in the Table Properties dialog box. This command jumps to the beginning of the next table, and you can then paste the header row you copied earlier. Selection.GoTo What:=wdGoToTable, Which:=wdGoToNext Then, you can move the insertion point to the beginning of the next table (the newly created one) by using the following command: This command splits the table at row 5 you can easily change the splitting point by changing the row at which it is split. You could copy the first row of the table and then split the table using a command similar to the following: There is another way to programmatically handle the underlying action that Mary wants to achieve, however-a method that doesn't require the use of index numbers for the Tables collection. The macro can be easily adapted to a larger context, such as one where the table is split and otherwise manipulated. To use the macro, simply make sure that the insertion point is within the desired table. MsgBox "The current table is table " & iTableNum If ("TempBM") ThenĪctiveDocument.Bookmarks("TempBM").SelectĪctiveDocument.Bookmarks("TempBM").Delete
![active tables microsoft word active tables microsoft word](https://images.template.net/wp-content/uploads/2015/11/06201042/Download-Project-Activity-Schedule-Template-MS-Word.jpg)
The following macro implements these steps: Once you find that out, you know which table is the current one, and you can delete the bookmark. The simplest way is to add a bookmark to the current table, and then examine all the tables in the document to see which table contains that bookmark. For instance, you could use the following to discover how many tables are in a document, as it returns the number of objects in the Tables collection:įinding which table is the current one is a bit trickier, but it can be done. You can easily find the number of objects in a collection using the Count property. This goes not only for tables, but for paragraphs, graphics, and a host of other objects. Word's object model relies on organizing individual objects into collections that can be accessed programmatically. Mary wants to know how she can discover the index number for the active table (before the split) so she can simply increment that number to know the new index number for the table created after the split. In order to do this properly, she wants to determine the index numbers used by Word to reference the two tables in the Tables collection. Working on the active table isn't much of a problem, but she wants to copy the first row of the active table, then split the table, and finally paste the copied row to the first row of the new table created by the split.
![active tables microsoft word active tables microsoft word](https://www.wallacesfurniture.com.au/wp-content/uploads/2019/01/elr-14606-super-leg-ecr.jpg)
Mary is writing a macro that will split a table.