WD2000: Acceptable Values of wdLineWidth Constant (in wdLineStyle) (212587)
The information in this article applies to:
This article was previously published under Q212587 SUMMARY
When you apply borders using Visual Basic for Applications commands, you
can specify the line style and the line width of the border to be applied.
Each border line style has a different number of varying line widths that
can be applied to a border. That is, all line widths are not available to
use with every line style.
Also, the list of wdLineWidth constants is available for use in a macro,
regardless of the line style being applied. There is no programmatic method
available for determining whether a particular line width is a valid width
to use with a chosen border line style. If you apply an invalid line width
to a line style, the macro returns an error when you run it (it does
not return an error when it is compiled).
This article contains the list of wdLineStyle constants and the
wdLineWidths that can be used with the line style.
REFERENCES
For more information about how to use the sample code in this article, click
the article number below to view the article in the Microsoft Knowledge
Base:
212536
OFF2000: How to Run Sample Code from Knowledge Base Articles
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming KB212587 |
---|
|