Still one hair remaining... not for long
This :
Function Around(Compare As String)
Around = (Range(Compare).Value = Range(Compare).Offset(-1, 0).Value) Or (Range(Compare).Value = Range(Compare).Offset(1, 0).Value)
End Function
generates a #VALUE! in the cell that calls it
I cannot figure out why
Any clues ?
I think #Value error while accessing user defined function in VBA does not apply here.


Range(Compare)evaluates to something in row 1. The offset of -1 tries to access row 0, which doesn't exist. That's the only way I can get a #VALUE error out of this (although I'm only working with one worksheet - the unqualifiedRange's are also potentially problematic).