WD97: Paragraph.Border.Linestyle Incorrect After Applying Shadow

Last reviewed: February 11, 1998
Article ID: Q164009
The information in this article applies to:
  • Microsoft Word 97 for Windows

SYMPTOMS

When you apply both 3-D borders and shadowing to a paragraph, then use the LineStyle Property to return the type of borders applied for top, bottom, left, and right sides of the border for that paragraph, the returned values for bottom and right borders are wdLineStyleEngrave3D (or 22). The expected returned values would be wdLineStyleEmboss3D (or 21).

CAUSE

The following example Visual Basic for Applications macro demonstrates this problem. The macro first applies 3-D borders to a paragraph and then applies a paragraph shadow. A loop is set to return the values of the type of border applied to each side of the paragraph.

   Sub ParaShadowBorder()
      Set oBorders = ActiveDocument.Paragraphs(1).Borders
      oBorders.OutsideLineStyle = wdLineStyleEmboss3D
      oBorders.Shadow = True
      For Each Border In oBorders
         MsgBox Border.LineStyle
      Next Border
   End Sub

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: 97 vb vbe vba word8 word97 8.0 8.0
Keywords : kbualink97 kbwordvba kbcode kbprb kbprg
Version : 97
Platform : WINDOWS


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: February 11, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.