Find Next(Object) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Continues a search that was begun with the Find(Object, Object, Object, Object, Object, XlSearchDirection, Object, Object, Object) method.
public Microsoft.Office.Interop.Excel.Range FindNext (object After);
Public Function FindNext (Optional After As Object) As Range
Optional Object. The cell after which you want to search. This corresponds to the position of the active cell when a search is done from the user interface. Note that
After must be a single cell in the range. Remember that the search begins
after this cell; the specified cell isn’t searched until the method wraps back around to this cell. If this argument isn’t specified, the search starts after the cell in the upper-left corner of the range.
Finds the next cell that matches those same conditions and returns a Range object that represents that cell.
This method doesn’t affect the selection or the active cell.
When the search reaches the end of the specified search range, it wraps around to the beginning of the range. To stop a search when this wraparound occurs, save the address of the first found cell, and then test each successive found-cell address against this saved address.