WD2000: Acceptable Values of wdLineWidth Constant (in wdLineStyle)

ID: Q212587


The information in this article applies to:
  • Microsoft Word 2000


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.


MORE INFORMATION

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft Support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:

http://www.microsoft.com/support/supportnet/overview/overview.asp


The following table contains the list of wdLineStyle constants and the wdLineWidths that can be used with the line style.
                            Available Line Widths(wdLineWidths in pts)
   wdLineStyle Constant       .25  .5  .75  1  1.5  2.25  3  4.5  6
   ----------------------------------------------------------------
   Single                      x    x   x   x   x    x    x   x   x
   Dot                         x    x   x   x   x    x    x   x   x
   DashSmallGap                x    x   x   x   x    x    x   x   x
   DashLargeGap                x    x   x   x   x    x    x   x   x
   DashDot                     x    x   x   x   x    x    x   x   x
   DashDotDot                  x    x   x   x   x    x    x   x   x
   Double                      x    x   x       x    x    x
   Triple                      x    x   x       x    x    x
   ThinThickSmallGap                            x    x    x   x   x
   ThickThinSmallGap                            x    x    x   x   x
   ThinThickThinSmallGap                        x    x    x   x   x
   ThinThickMedGap             x    x   x   x   x    x    x   x   x
   ThickThinMedGap             x    x   x   x   x    x    x   x   x
   ThinThickThinMedGap         x    x   x   x   x    x    x   x
   ThinThickLargeGap           x    x   x   x   x    x    x   x   x
   ThickThinLargeGap           x    x   x   x   x    x    x   x   x
   ThinThickThinLargeGap       x    x   x   x   x    x    x   x   x
   SingleWavy                           x       x
   DoubleWavy                           x
   DashDotStroked                                         x
   Emboss3D                             x       x    x    x   x   x
   Engrave3D                            x       x    x    x   x   x 


For more information about LineWidths, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type LineWidth in the Office Assistant or the Answer Wizard, and then click Search to view the topic.


REFERENCES

For more information about using the sample code in this article, click the article number below to view the article in the Microsoft Knowledge Base:

Q212536 OFF2000: How to Run Sample Code from Knowledge Base Articles


Additional query words: vb vbe vba

Keywords : kbprg kbdta kbwordvba
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: November 13, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.