WD98: Acceptable Values of wdLineWidth Constant(in wdLineStyle)

Last reviewed: March 3, 1998
Article ID: Q181844
The information in this article applies to:
  • Microsoft Word 98 Macintosh Edition

SUMMARY

When you apply borders using Microsoft 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 are 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 will return an error when you run it (it will not return an error when it's compiled).

This article contains the list of wdLineStyle constants and the wdLineWidths that can be used with the line style.

MORE INFORMATION

   wdLineStyle Constant      Available Line Widths(pts)
                              .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

REFERENCES

For more information about LineWidths, click the Office Assistant while in the Visual Basic Editor, type "LineWidth," click Search, and then click to view "LineWidth Property."

NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Microsoft Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q179216
   TITLE     : OFF98: How to Use the Microsoft Office Installer Program

For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q163435
   TITLE     : VBA: Programming Resources for Visual Basic for
               Applications


Additional query words: vb vba vbe
Keywords : kbdta kbdtacode kbmacroexample OffVBA macword98
Version : MACINTOSH:98
Platform : MACINTOSH
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.