Hi,
When using the 'Find' or 'FindString' functions is there any way of enabling the 'Match entire cell contents' flag as seen in the Excel 'Find and Replace' window?
I thought there would possibly be something within the FindOptions but I can't see anything.
In a previous forum post there is reference to a FindOptions.Setmatchtype(FindOptions.MATCH_ENTIRE) however this function is not valid. I am using version 7.0.3.2.
I checked this page in the documentation but there is no mention of it:
Example code:
Dim dateCell As Cell
Dim dateOptions As New FindOptions()
Dim dateArea As New CellArea()
dateArea.StartColumn = startColumn
dateArea.StartRow = HeaderRow
dateArea.EndColumn = maxColumn
dateArea.EndRow = HeaderRow
dateOptions.SetRange(dateArea)
dateCell = sheet.Cells.Find("01/01/2010", Nothing, dateOptions)
Thanks,
Steve.