XL3/XL4: Function with Best Fit Removes Borders from Worksheet

Last reviewed: February 2, 1998
Article ID: Q104579

The information in this article applies to:
  • Microsoft Excel for Windows, versions 3.0, 4.0, 4.0a
  • Microsoft Excel for OS/2, version 3.0
  • Microsoft Excel for the Macintosh, versions 3.0, 3.0a, 4.0

SYMPTOMS

In Microsoft Excel, if you use the ROW.HEIGHT() macro function to format a range of cells with a best-fit height, borders may be removed from your worksheet.

This problem occurs most frequently when borders have been applied to the entire row or column.

WORKAROUND

To work around this problem, do one of the following:

  • Apply borders to a range of cells rather than to the entire column or row.

        -or-
    
  • If you must apply borders to the entire column and/or row, specify the entire worksheet for the reference argument. For example, use

          =ROW.HEIGHT(,"R1:R16384",,3)
    

    to change all the rows on the worksheet to a best-fit row height.

    Note that when you use this workaround borders may still be removed from the first row of the worksheet.

        -or-
    
  • Use the BORDER() function in your macro to replace the borders on the worksheet after you've applied the best-fit formatting.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Excel versions 3.0, 4.0 and 4.0a for Windows, and Microsoft Excel versions 3.0 and 4.0 for the Macintosh. We are researching this problem and will post new information here as it becomes available.

REFERENCES

"Function Reference," version 3.0, pages 201-202 "Function Reference," version 4.0, pages 365-366


Additional query words: 4.00 3.00 deleted clear M_eXceL XL3 XL4
Version : WINDOWS:3.0,4.0,4.0a; OS/2:3.0; MACINTOSH:3.0,4.0
Platform : MACINTOSH OS/2 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 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.