I am working with family history data and need to ascertain the Sex from the Given Name.
I built a lookup table of given names and usual Sex but it occasionally fails due to a missing or unrecognized lookup entry.
I normally Debug.Print the row number on failure and manually make an entry to the lookup table.
I have been investigating the use of On Error to ensure my code completes. I would like to get a List of failed entries so I can manually add a M or F to the table.
The lookup is below.
Set rng = Worksheets("Given_Names").Columns("A:A").Find(What:=sGiven, _
LookIn:=xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByRows, _
SearchDirection:=xlNext, MatchCase:=False, SearchFormat:=False)
iLookUpRow = rng.Row
sSex = Worksheets("Given_Names").Cells(iLookUpRow, 2).Value
