XL97: FindPrevious Method Does Not Support Discontiguous Range

Last reviewed: March 13, 1998
Article ID: Q158083
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

When you use the FindPrevious method, the incorrect address is returned if you use this method on a range of discontiguous cells.

CAUSE

The algorithm used by the FindPrevious method enumerates (counts or searches) the cell references in a forward direction while the cells themselves are being enumerated in reverse order.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The FindPrevious method continues a search started with the Find method. It finds the previous cell matching the same conditions and returns a range object that represents that cell. The FindPrevious method does not affect the current selection or the active cell.

REFERENCES

For more information about the FindPrevious method, click the Index tab in Microsoft Visual Basic Help, type the following text

     FindPrevious

and then double-click the selected text to go to the "FindPrevious Method" topic.


Additional query words: XL97 8.00 find next non-adjacent nonadjacent
Keywords : kbcode kbprg xlvbahowto xlvbainfo
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb


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