8 Formatting Tips for Perfect Tables in Microsoft Word. Select and copy-paste the Microsoft Excel table to a Microsoft Word document with the source formatting. Now, copy-paste from Microsoft Word to Gmail. This keeps nice distance between the top/bottom line of a cell within the table from the text. It keeps everything uncluttered. If you want to get rid of the extra space when creating a table in Word, highlight the table and go to 'Table Properties.' Go to the Row tab. Select 'Specify Height' and type in 1.5. In Row Height is select 'Exactly', and the extra space is no longer there. If I understand correctly, you want to take a single cell in a multi-cell table and change its padding to zero. You can do that but it effects, in some manner, all other cells in the table. If you change the left or right padding in a single cell, it effects the column width of all other adajcent columns. If you change the top or bottom padding of a single cell it effects all cells in the same row. Further, once you change these setting in a single cell, you cannot alter the padding settings for a row or column. An individual cell's custom margin settings take precedence for the row/column. Kind Regards, Rich. Try something along the lines of: Sub Demo() Dim Tbl As Table, sRwHt As Single, StrRowCol As String With ActiveDocument.Tables(1).Cell(2, 2) StrRowCol = InputBox('How many Rows & Columns?' & vbCr & _ 'in Row#,Column# format, please.' ).TopPadding = 0.BottomPadding = 0.LeftPadding = 0.RightPadding = 0 sRwHt =.Height Set Tbl =.Tables.Add(Range:=.Range, NumRows:=1, NumColumns:=1) With Tbl.Rows(1).Height = sRwHt.TopPadding = 0.BottomPadding = 0.LeftPadding = 0.RightPadding = 0.Spacing = 0.Cell(1, 1).Split NumRows:=Trim(Split(StrRowCol, ',')(0)), _ NumColumns:=Trim(Split(StrRowCol, ',')(1)) End With End With End Sub The above macro inserts a new table into cell B2 in the first table in the document. It solicits the # rows and columns for the new table. Theoretically, you should be able to plug those values into the.Tables.Add expression but, on my system at least, the # rows value is ignored; hence the.Cell(1, 1).Split expression. Cheers Paul Edstein [MS MVP - Word]. ![]() Word 2007 After you create a table, Microsoft Office Word 2007 offers you many ways to format that table. If you decide to use Table Styles, you can format your table all at once, and even see a preview of what your table will look like formatted in a particular style before you actually apply the style. You can create a custom look for tables by splitting or merging cells, adding or deleting columns or rows, or adding borders. If you're working with a long table, you can repeat the table headings on each page on which the table appears. To prevent awkward page breaks that disrupt the flow of your table, you can also specify just how and where the table should break across pages. What do you want to do? Use Table Styles to format an entire table After you create a table, you can format the entire table by using Table Styles. By resting your pointer over each of the preformatted table styles, you can preview what the table will look like. • Click in the table that you want to format. • Under Table Tools, click the Design tab. • In the Table Styles group, rest the pointer over each table style until you find a style that you want to use. Note: To see more styles, click the More arrow. • Click the style to apply it to the table. • In the Table Style Options group, select or clear the check box next to each the table element to apply or remove the selected style. Add or remove borders You can add or remove borders to format a table the way that you want. Add table borders • Under Table Tools, click the Layout tab. • In the Table group, click Select, and then click Select Table. • Under Table Tools, click the Design tab. • In the Table Styles group, click Borders, and then do one of the following: • Click one of the predefined border sets. • Click Borders and Shading, click the Borders tab, and then choose the options that you want. Remove table borders from the whole table • Under Table Tools, click the Layout tab. • In the Table group, click Select, and then click Select Table. • Under Table Tools, click the Design tab. • In the Table Styles group, click Borders, and then click No Border. Add table borders to specified cells only • On the Home tab, in the Paragraph group, click Show/Hide. • Select the cells that you want, including their end-of-cell marks. ![]() • Under Table Tools, click the Design tab. • In the Table Styles group, click Borders, and then click the border that you want to add. Remove table borders from specified cells only • On the Home tab, in the Paragraph group, click Show/Hide. • Select the cells that you want, including their end-of-cell marks. • Under Table Tools, click the Design tab. • In the Table Styles group, click Borders, and then click No Border.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2019
Categories |