ActiveDocument.Tables(1).Borders.Enable = False To remove all the borders from an object, set the Enable property to False, as shown in the following example. The default line style and line width can be set using the DefaultBorderLineWidth and DefaultBorderLineStyle properties. True sets the line style to the default line style and sets the line width to the default line width. The Enable property applies to all borders for the specified object. Can be set to True, False, or a WdLineStyle constant. The Enable property returns True or wdUndefined if border formatting is applied to all or part of the specified object. SyntaxĮxpression A variable that represents a ' Borders' collection. Returns or sets border formatting for the specified object.
0 Comments
Leave a Reply. |