

For Each aBorder In ActiveDocument.Sections(1).Borders The following example adds an art border around each page in the first section. The following example applies a single-line border around the first character in the selection. With ActiveDocument.Paragraphs(1).Borders(wdBorderBottom) The following example applies a double-line border below the first paragraph in the active document. Table commands If possible, the cell is split on an existing border rather then always adding a border in the exact middle of the cell Proper and sensible. And then you can preview the result by clicking Print Preview button at the bottom of the dialog, and now when you print the worksheet, a bold border around each. In the Page Setup dialog box, click Sheet tab, and then check Gridlines under Print section, see screenshot: 4. Use the LineStyle property to apply a border line to a Border object. Then go to click Page Layout > Page Setup arrow, see screenshot: 3. English, for example) that you have selected or installed. If you havent yet created your Word document, open Word, click Blank document, and create the document as needed before proceeding. This will open the document in Microsoft Word. Double-click the Word document to which you want to add borders. Some of the WdBorderType constants may not be available to you, depending on the language support (U.S. Adding a Border to Content 1 Open your Word document. Index can be one of the WdBorderType constants. Use Borders (index), where index identifies the border, to return a single Border object. For example, a table has six elements in the Borders collection, whereas a paragraph has four. The number of members in the Borders collection is finite and varies depending on the type of object. ActiveDocument.Paragraphs(1).Borders.Enable = Trueīorder objects cannot be added to the Borders collection. The following example applies the default border around the first paragraph in the active document. Use the Borders property to return the Borders collection. A collection of Border objects that represent the borders of an object.
